Files
AstroConfig/lua/plugins/20-lsp.lua
2025-05-31 11:24:14 +02:00

32 lines
937 B
Lua

---@type LazySpec
return {
"AstroNvim/astrolsp",
---@type AstroLSPOpts
opts = {
---@diagnostic disable: missing-fields
config = {
clangd = {
filetypes = { "c", "cpp", "objc", "objcpp", "cuda" },
cmd = {
"clangd",
"--header-insertion=never", -- Disable auto includes
"--enable-config", -- Enable .clangd and clangd.yaml files
},
},
slint_lsp = {
root_dir = function() end, -- Fix missing root_dir issue in neoconf (lspconfig doesn't define it...)
},
qmlls = {
cmd = { "qmlls6" },
},
},
servers = { "qmlls" },
features = {
signature_help = true,
inlay_hints = true,
codelens = true,
semantic_tokens = true,
},
},
}