fixed lazydev
This commit is contained in:
@@ -4,14 +4,6 @@ return {
|
|||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
providers = {
|
|
||||||
lazydev = {
|
|
||||||
name = "LazyDev",
|
|
||||||
module = "lazydev.integrations.blink",
|
|
||||||
priority = 100,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Snippet configuration
|
-- Snippet configuration
|
||||||
snippets = {
|
snippets = {
|
||||||
preset = "luasnip", -- Tells blink.cmp to use LuaSnip
|
preset = "luasnip", -- Tells blink.cmp to use LuaSnip
|
||||||
@@ -36,11 +28,20 @@ return {
|
|||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
default = {
|
default = {
|
||||||
|
"lazydev",
|
||||||
"lsp", -- (Equivalent to cmp-nvim-lsp)
|
"lsp", -- (Equivalent to cmp-nvim-lsp)
|
||||||
"snippets", -- (Handled by the snippets config, replaces cmp_luasnip source)
|
"snippets", -- (Handled by the snippets config, replaces cmp_luasnip source)
|
||||||
"buffer", -- (Equivalent to cmp-buffer)
|
"buffer", -- (Equivalent to cmp-buffer)
|
||||||
"path", -- (Equivalent to cmp-path)
|
"path", -- (Equivalent to cmp-path)
|
||||||
-- "cmdline", -- Generally configured separately, but often included by default
|
-- "cmdline", -- Generally configured separately, but often included by default
|
||||||
|
},
|
||||||
|
providers = {
|
||||||
|
lazydev = {
|
||||||
|
name = "LazyDev",
|
||||||
|
module = "lazydev.integrations.blink",
|
||||||
|
-- make lazydev completions top priority (see `:h blink.cmp`)
|
||||||
|
score_offset = 100,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
{
|
|
||||||
"folke/lazydev.nvim",
|
"folke/lazydev.nvim",
|
||||||
ft = "lua", -- only load on lua files
|
ft = "lua", -- only load on lua files
|
||||||
opts = {
|
opts = {
|
||||||
@@ -8,18 +7,5 @@ return {
|
|||||||
-- Load luvit types when the `vim.uv` word is found
|
-- Load luvit types when the `vim.uv` word is found
|
||||||
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
|
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
|
||||||
},
|
},
|
||||||
sources = {
|
|
||||||
-- add lazydev to your completion providers
|
|
||||||
default = { "lazydev", "lsp", "path", "snippets", "buffer" },
|
|
||||||
providers = {
|
|
||||||
lazydev = {
|
|
||||||
name = "LazyDev",
|
|
||||||
module = "lazydev.integrations.blink",
|
|
||||||
-- make lazydev completions top priority (see `:h blink.cmp`)
|
|
||||||
score_offset = 100,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user