diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-09-28 21:16:48 +0200 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-09-28 21:17:22 +0200 |
| commit | d0585ecf49f8eebc44cac7dae2a686d1ef33e141 (patch) | |
| tree | d864af6d053ae57ccdf18be2dc5a04f788e46875 /lua/pml68/plugins | |
| parent | feat(markdown): add bindings for jumping between spelling errors (diff) | |
| download | nvim-d0585ecf49f8eebc44cac7dae2a686d1ef33e141.tar.gz | |
feat: replace nvim-cmp with blink.cmp
Diffstat (limited to 'lua/pml68/plugins')
| -rw-r--r-- | lua/pml68/plugins/completion.lua | 54 | ||||
| -rw-r--r-- | lua/pml68/plugins/lang-specific.lua | 1 |
2 files changed, 34 insertions, 21 deletions
diff --git a/lua/pml68/plugins/completion.lua b/lua/pml68/plugins/completion.lua index 561ab22..94a5463 100644 --- a/lua/pml68/plugins/completion.lua +++ b/lua/pml68/plugins/completion.lua @@ -1,25 +1,39 @@ return { - "hrsh7th/nvim-cmp", - event = "InsertEnter", - dependencies = { - { - "windwp/nvim-autopairs", - opts = { - fast_wrap = {}, - disable_filetype = { "TelescopePrompt", "vim" }, + { + "saghen/blink.compat", + version = "2.*", + opts = {} + }, + { + "saghen/blink.cmp", + lazy = false, + version = "1.*", + opts = { + keymap = { preset = "default" }, + appearance = { + nerd_font_variant = "normal", + }, + completion = { + documentation = { + auto_show = true, + auto_show_delay_ms = 150, + }, + }, + sources = { + default = { "lsp", "path", "vimtex", "crates", "buffer" }, + providers = { + vimtex = { + name = "vimtex", + module = "blink.compat.source", + }, + crates = { + name = "crates", + module = "blink.compat.source", + }, + }, }, - config = function(_, opts) - require("nvim-autopairs").setup(opts) - - local cmp_autopairs = require "nvim-autopairs.completion.cmp" - require("cmp").event:on("confirm_done", cmp_autopairs.on_confirm_done()) - end, + cmdline = { enabled = false }, + signature = { enabled = true }, }, - "hrsh7th/cmp-nvim-lsp", - "hrsh7th/cmp-buffer", - "hrsh7th/cmp-path", }, - config = function() - require("pml68.configs.cmp") - end, } diff --git a/lua/pml68/plugins/lang-specific.lua b/lua/pml68/plugins/lang-specific.lua index 4895f9e..079c90e 100644 --- a/lua/pml68/plugins/lang-specific.lua +++ b/lua/pml68/plugins/lang-specific.lua @@ -28,7 +28,6 @@ return { { "saecki/crates.nvim", tag = "stable", - dependencies = "hrsh7th/nvim-cmp", event = { "BufRead Cargo.toml", "BufWrite Cargo.toml" }, config = function() local crates = require("crates") |
