Correctly sets up lua IDE

This commit is contained in:
Dennis Schoepf 2025-04-15 20:49:59 +02:00
parent 26428924c0
commit 98e3a59438
9 changed files with 56 additions and 73 deletions

View file

@ -14,8 +14,6 @@ return {
appearance = {
nerd_font_variant = "mono",
},
-- (Default) Only show the documentation popup when manually triggered
-- C-k: Toggle signature help (if signature.enabled = true)
completion = {
documentation = { auto_show = false },
list = {
@ -29,10 +27,15 @@ return {
enabled = true,
},
sources = {
default = { "lsp", "path", "snippets", "buffer" },
default = { "lazydev", "lsp", "path", "snippets", "buffer" },
per_filetype = { sql = { "dadbod" } },
providers = {
dadbod = { module = "vim_dadbod_completion.blink" },
lazydev = {
name = "LazyDev",
module = "lazydev.integrations.blink",
score_offset = 100,
},
},
},
fuzzy = { implementation = "prefer_rust_with_warning" },

View file

@ -0,0 +1,7 @@
return {
{
"folke/lazydev.nvim",
ft = "lua", -- only load on lua files
opts = {},
},
}