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 | |
| parent | b68c7097a2bd39512d9acd2a6a6e174cf983bdf2 (diff) | |
Neovim: added overseer (not configured yet) and some other changes
Diffstat (limited to '.config/nvim/lua')
| -rw-r--r-- | .config/nvim/lua/keymaps.lua | 1 | ||||
| -rw-r--r-- | .config/nvim/lua/options.lua | 1 | ||||
| -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 |
5 files changed, 28 insertions, 10 deletions
diff --git a/.config/nvim/lua/keymaps.lua b/.config/nvim/lua/keymaps.lua index 2b2dba8..3b0f4aa 100644 --- a/.config/nvim/lua/keymaps.lua +++ b/.config/nvim/lua/keymaps.lua @@ -5,6 +5,7 @@ vim.keymap.set('n', '<leader>z', function() vim.cmd('Neotree close') vim.cmd('Trouble todo close') end, { desc = '[Z]en Mode' }) +vim.keymap.set({ 'i', 'c' }, '<C-v>', '<C-r>+') -- Undo/Redo vim.keymap.set('n', 'U', ':redo<cr>') diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua index 64caa45..94eee95 100644 --- a/.config/nvim/lua/options.lua +++ b/.config/nvim/lua/options.lua @@ -36,7 +36,6 @@ vim.opt.termguicolors = true vim.opt.laststatus = 3 -- views can only be fully collapsed with the global statusline vim.opt.splitkeep = "screen" -- for edgy.nvim - -- Disable warnings for missing language providers vim.g.loaded_node_provider = 0 vim.g.loaded_perl_provider = 0 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' }, + }, +} |
