diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-11-28 16:54:53 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-02 10:18:52 +0100 |
| commit | 2187a08bd3ec76dc4d9c008331493be699e6ab00 (patch) | |
| tree | c56011d61eafdd4f273ff0f0c8b2e7d4ef45154c /config/nvim/lua/plugins.lua | |
| parent | ca13f790e2ca8c6389334213dddef701c7626d1f (diff) | |
Use blink.cmp and jannotate in neovim
Diffstat (limited to 'config/nvim/lua/plugins.lua')
| -rw-r--r-- | config/nvim/lua/plugins.lua | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 9695d44..5876b51 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -88,16 +88,26 @@ require('lazy').setup({ { 'neovim/nvim-lspconfig', lazy = false, - dependencies = { - { 'ms-jpq/coq_nvim', branch = 'coq' }, - { 'ms-jpq/coq.artifacts', branch = 'artifacts' }, - { 'ms-jpq/coq.thirdparty', branch = '3p' } + }, + { + 'saghen/blink.cmp', + dependencies = { 'rafamadriz/friendly-snippets' }, + version = '1.*', + + ---@module 'blink.cmp' + ---@type blink.cmp.Config + opts = { + keymap = { + preset = 'enter', + ['<Tab>'] = { 'snippet_forward', 'select_next', 'fallback' }, + ['<S-Tab>'] = { 'snippet_backward', 'select_prev', 'fallback' }, + }, + sources = { + default = { 'lsp', 'path', 'snippets', 'buffer' }, + }, + fuzzy = { implementation = "prefer_rust_with_warning" }, }, - init = function() - vim.g.coq_settings = { - auto_start = 'shut-up', - } - end, + opts_extend = { "sources.default" } }, { "folke/lazydev.nvim", @@ -107,8 +117,6 @@ require('lazy').setup({ -- Tools 'mbbill/undotree', - 'vim-scripts/LargeFile', - 'tpope/vim-fugitive', 'milkypostman/vim-togglelist', { 'folke/which-key.nvim', @@ -119,13 +127,17 @@ require('lazy').setup({ end, opts = {} }, - { 'stevearc/oil.nvim', opts = { - keymaps = { - ['<C-p>'] = false, - ['<C-S-p>'] = 'actions.preview' + { + 'stevearc/oil.nvim', + opts = { + keymaps = { + ['<C-p>'] = false, + ['<C-S-p>'] = 'actions.preview' + } } - } }, + }, 'https://git.sr.ht/~rbdr/nota.nvim', 'https://git.sr.ht/~rbdr/oleoboard.nvim', + 'https://git.sr.ht/~rbdr/jannotate.nvim', }) |