add lazydev

This commit is contained in:
2025-05-23 06:48:11 +02:00
parent 36c2767bfc
commit c5a11347b2
3 changed files with 23 additions and 1 deletions

View File

@@ -51,7 +51,15 @@ return {
},
},
sources = {
default = { "lsp", "path", "buffer" },
default = { "lsp", "lazydev", "path", "buffer" },
providers = {
lazydev = {
name = "LazyDev",
module = "lazydev.integrations.blink",
-- make lazydev completions top priority (see `:h blink.cmp`)
score_offset = 100,
},
},
},
completion = {
accept = {

View File

@@ -0,0 +1,13 @@
return {
{
"folke/lazydev.nvim",
ft = "lua", -- only load on lua files
opts = {
library = {
-- See the configuration section for more details
-- Load luvit types when the `vim.uv` word is found
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
},
},
},
}