diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-04 23:55:29 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-04 23:55:29 +0300 |
| commit | 2c67cae7df1cbfc8c4557fcbf4dad8bb2a412c28 (patch) | |
| tree | c04076a278f3978a403049450846e0e1cb2e3c9e /.config/nvim/lua/plugins | |
| parent | b68c7097a2bd39512d9acd2a6a6e174cf983bdf2 (diff) | |
Neovim: added overseer (not configured yet) and some other changes
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' }, + }, +} |
