Files
AstroConfig/lua/plugins/20-lsp.lua

48 lines
1.2 KiB
Lua

---@type LazySpec
return {
{
"AstroNvim/astrolsp",
optional = true,
---@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
},
},
qmlls = {
cmd = { "qmlls6" },
},
},
servers = {
"qmlls",
},
features = {
signature_help = true,
inlay_hints = true,
codelens = true,
semantic_tokens = true,
},
},
},
{
"zeioth/garbage-day.nvim",
optional = true,
opts = {
excluded_lsp_clients = {
"clangd",
"null-ls",
"jdtls",
"marksman",
"lua_ls",
"dev-tools",
},
},
},
}