mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-16 18:54:13 +00:00
chore(nvim): add lazydev to blink.cmp completions
This commit is contained in:
@@ -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,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -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' } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user