chore(nvim): add lazydev to blink.cmp completions

This commit is contained in:
2025-01-10 22:13:00 +02:00
parent 3eab1faeab
commit 36e4de3035
2 changed files with 10 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ return {
-- elsewhere in your config, without redefining it, via `opts_extend`
sources = {
default = {
'lazydev',
'lsp',
'snippets',
'copilot',
@@ -106,6 +107,12 @@ return {
name = 'copilot',
module = 'blink-cmp-copilot',
},
lazydev = {
name = 'LazyDev',
module = 'lazydev.integrations.blink',
-- make lazydev completions top priority (see `:h blink.cmp`)
score_offset = 100,
},
},
},

View File

@@ -124,6 +124,9 @@ return {
library = {
-- Load luvit types when the `vim.uv` word is found
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
-- load assert and describe paths
{ path = 'luassert/library', words = { 'assert' } },
{ path = 'busted/library', words = { 'describe' } },
},
},
},