diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-08 13:55:22 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-08 13:55:22 +0300 |
| commit | dbbbb97b715f022251e2d1826967222b5865a949 (patch) | |
| tree | 92fe1af61b749273c337d786ac55d79d35f6941a /.config/nvim/lua/custom | |
| parent | 5bc29f77a48b8e46513c982362a55884e7f65238 (diff) | |
Neovim: refactored keymaps to , completions now have good keybindings and did some slight tweaks
Diffstat (limited to '.config/nvim/lua/custom')
| -rw-r--r-- | .config/nvim/lua/custom/completion.lua | 2 | ||||
| -rw-r--r-- | .config/nvim/lua/custom/lsp.lua | 2 | ||||
| -rw-r--r-- | .config/nvim/lua/custom/plugins/TODO-completion.lua | 19 | ||||
| -rw-r--r-- | .config/nvim/lua/custom/plugins/completion.lua | 16 |
4 files changed, 16 insertions, 23 deletions
diff --git a/.config/nvim/lua/custom/completion.lua b/.config/nvim/lua/custom/completion.lua index 80c9531..04ae172 100644 --- a/.config/nvim/lua/custom/completion.lua +++ b/.config/nvim/lua/custom/completion.lua @@ -67,5 +67,3 @@ cmp.setup({ ['<C-p>'] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }), }), }) - -print('Sourced completion.lua') diff --git a/.config/nvim/lua/custom/lsp.lua b/.config/nvim/lua/custom/lsp.lua index d534e22..929014d 100644 --- a/.config/nvim/lua/custom/lsp.lua +++ b/.config/nvim/lua/custom/lsp.lua @@ -97,5 +97,3 @@ vim.api.nvim_create_autocmd('LspAttach', { -- -- require('lsp_lines').setup() -- vim.diagnostic.config({ virtual_text = false }) - -print('Sourced lsp.lua') diff --git a/.config/nvim/lua/custom/plugins/TODO-completion.lua b/.config/nvim/lua/custom/plugins/TODO-completion.lua deleted file mode 100644 index 3f0ba3e..0000000 --- a/.config/nvim/lua/custom/plugins/TODO-completion.lua +++ /dev/null @@ -1,19 +0,0 @@ -return { - { - 'hrsh7th/nvim-cmp', - lazy = false, - priority = 100, - dependencies = { - -- 'onsails/lspkind.nvim', - -- 'hrsh7th/cmp-path', - -- 'hrsh7th/cmp-buffer', - 'hrsh7th/cmp-nvim-lsp', -- lsp source for nvim-cmp - 'saadparwaiz1/cmp_luasnip', -- snippets source for nvim-cmp - { 'L3MON4D3/LuaSnip', build = 'make install_jsregexp' }, -- snippets plugin - }, - -- TODO: Move to setup opts - config = function() - require('custom.completion') - end, - }, -} diff --git a/.config/nvim/lua/custom/plugins/completion.lua b/.config/nvim/lua/custom/plugins/completion.lua new file mode 100644 index 0000000..5e0f2ef --- /dev/null +++ b/.config/nvim/lua/custom/plugins/completion.lua @@ -0,0 +1,16 @@ +return { + 'hrsh7th/nvim-cmp', + lazy = false, + priority = 100, + dependencies = { + -- 'onsails/lspkind.nvim', + -- 'hrsh7th/cmp-path', + -- 'hrsh7th/cmp-buffer', + 'hrsh7th/cmp-nvim-lsp', -- lsp source for nvim-cmp + 'saadparwaiz1/cmp_luasnip', -- snippets source for nvim-cmp + { 'L3MON4D3/LuaSnip', build = 'make install_jsregexp' }, -- snippets plugin + }, + config = function() + require('custom.completion') + end, +} |
