From 97dd3dc21de9c75431f00fbeb0ccee81a8c8bb5e Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 10 Jan 2025 21:57:58 +0200 Subject: [PATCH] chore(nvim): blink.cmp LuaSnip support, cleanup --- config/nvim/lua/plugins/blink.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/nvim/lua/plugins/blink.lua b/config/nvim/lua/plugins/blink.lua index 968a743..88bade6 100644 --- a/config/nvim/lua/plugins/blink.lua +++ b/config/nvim/lua/plugins/blink.lua @@ -18,6 +18,8 @@ return { }, }, + { 'L3MON4D3/LuaSnip', version = 'v2.*' }, + -- Set of preconfigured snippets for different languages. -- https://github.com/rafamadriz/friendly-snippets { 'rafamadriz/friendly-snippets' }, @@ -50,6 +52,7 @@ return { ---@module 'blink.cmp' ---@type blink.cmp.Config opts = { + snippets = { preset = 'luasnip' }, -- 'default' for mappings similar to built-in completion -- 'super-tab' for mappings similar to vscode (tab to accept, arrow keys to navigate) -- 'enter' for mappings similar to 'super-tab' but with 'enter' to accept @@ -93,9 +96,9 @@ return { sources = { default = { 'lsp', + 'snippets', 'copilot', 'path', - 'snippets', 'buffer', }, providers = { @@ -106,9 +109,6 @@ return { }, }, - -- experimental auto-brackets support - -- completion = { accept = { auto_brackets = { enabled = true } } } - -- experimental signature help support signature = { enabled = true }, },