mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-13 09:48:44 +00:00
chore(nvim): blink.cmp LuaSnip support, cleanup
This commit is contained in:
@@ -18,6 +18,8 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ 'L3MON4D3/LuaSnip', version = 'v2.*' },
|
||||||
|
|
||||||
-- Set of preconfigured snippets for different languages.
|
-- Set of preconfigured snippets for different languages.
|
||||||
-- https://github.com/rafamadriz/friendly-snippets
|
-- https://github.com/rafamadriz/friendly-snippets
|
||||||
{ 'rafamadriz/friendly-snippets' },
|
{ 'rafamadriz/friendly-snippets' },
|
||||||
@@ -50,6 +52,7 @@ return {
|
|||||||
---@module 'blink.cmp'
|
---@module 'blink.cmp'
|
||||||
---@type blink.cmp.Config
|
---@type blink.cmp.Config
|
||||||
opts = {
|
opts = {
|
||||||
|
snippets = { preset = 'luasnip' },
|
||||||
-- 'default' for mappings similar to built-in completion
|
-- 'default' for mappings similar to built-in completion
|
||||||
-- 'super-tab' for mappings similar to vscode (tab to accept, arrow keys to navigate)
|
-- '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
|
-- 'enter' for mappings similar to 'super-tab' but with 'enter' to accept
|
||||||
@@ -93,9 +96,9 @@ return {
|
|||||||
sources = {
|
sources = {
|
||||||
default = {
|
default = {
|
||||||
'lsp',
|
'lsp',
|
||||||
|
'snippets',
|
||||||
'copilot',
|
'copilot',
|
||||||
'path',
|
'path',
|
||||||
'snippets',
|
|
||||||
'buffer',
|
'buffer',
|
||||||
},
|
},
|
||||||
providers = {
|
providers = {
|
||||||
@@ -106,9 +109,6 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- experimental auto-brackets support
|
|
||||||
-- completion = { accept = { auto_brackets = { enabled = true } } }
|
|
||||||
|
|
||||||
-- experimental signature help support
|
-- experimental signature help support
|
||||||
signature = { enabled = true },
|
signature = { enabled = true },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user