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

This commit is contained in:
2025-01-10 22:13:00 +02:00
parent 3eab1faeab
commit b9e5a7f8b3
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` -- elsewhere in your config, without redefining it, via `opts_extend`
sources = { sources = {
default = { default = {
'lazydev',
'lsp', 'lsp',
'snippets', 'snippets',
'copilot', 'copilot',
@@ -106,6 +107,12 @@ return {
name = 'copilot', name = 'copilot',
module = 'blink-cmp-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 = { library = {
-- Load luvit types when the `vim.uv` word is found -- Load luvit types when the `vim.uv` word is found
{ path = 'luvit-meta/library', words = { 'vim%.uv' } }, { path = 'luvit-meta/library', words = { 'vim%.uv' } },
-- load assert and describe paths
{ path = 'luassert/library', words = { 'assert' } },
{ path = 'busted/library', words = { 'describe' } },
}, },
}, },
}, },