diff options
Diffstat (limited to '.config/nvim/lua/plugins')
| -rw-r--r-- | .config/nvim/lua/plugins/edgy.lua | 9 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/overseer.lua | 10 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/overseer/template/user/c_build_make.lua | 17 |
3 files changed, 27 insertions, 9 deletions
diff --git a/.config/nvim/lua/plugins/edgy.lua b/.config/nvim/lua/plugins/edgy.lua index 2b3551b..7f01245 100644 --- a/.config/nvim/lua/plugins/edgy.lua +++ b/.config/nvim/lua/plugins/edgy.lua @@ -32,15 +32,6 @@ return { pinned = true, open = 'Neotree position=right git_status', }, - { - title = 'Neo-Tree Buffers', - ft = 'neo-tree', - filter = function(buf) - return vim.b[buf].neo_tree_source == 'buffers' - end, - pinned = true, - open = 'Neotree position=top buffers', - }, }, }, } diff --git a/.config/nvim/lua/plugins/overseer.lua b/.config/nvim/lua/plugins/overseer.lua new file mode 100644 index 0000000..6362f2a --- /dev/null +++ b/.config/nvim/lua/plugins/overseer.lua @@ -0,0 +1,10 @@ +return { + 'stevearc/overseer.nvim', + opts = {}, + config = function() + require('overseer').setup({ + templates = { 'builtin', 'user.c_build_make' }, + }) + vim.keymap.set('n', '<leader>r', ':OverseerRun<cr>', { desc = '[R]un Task' }) + end, +} 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' }, + }, +} |
