summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/overseer
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/overseer')
-rw-r--r--.config/nvim/lua/plugins/overseer/template/user/c_build_make.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/overseer/template/user/c_build_make.lua b/.config/nvim/lua/plugins/overseer/template/user/c_build_make.lua
new file mode 100644
index 0000000..58d7e3c
--- /dev/null
+++ b/.config/nvim/lua/plugins/overseer/template/user/c_build_make.lua
@@ -0,0 +1,17 @@
+return {
+ name = 'C build (make)',
+ builder = function()
+ -- Full path to current file (see :help expand())
+ local file = vim.fn.expand('%:p')
+ file = file:sub(1, -3)
+ return {
+ name = 'Make C file',
+ cmd = { 'make' },
+ args = { file },
+ components = { { 'on_output_quickfix', open = true }, 'default' },
+ }
+ end,
+ condition = {
+ filetype = { 'c' },
+ },
+}