26 lines
635 B
Lua
26 lines
635 B
Lua
---@type LazySpec
|
|
return {
|
|
"AstroNvim/astrolsp",
|
|
---@type AstroLSPOpts
|
|
opts = {
|
|
features = {
|
|
autoformat = false,
|
|
inlay_hints = true,
|
|
},
|
|
formatting = {
|
|
format_on_save = {
|
|
enabled = false,
|
|
},
|
|
timeout_ms = 1000,
|
|
},
|
|
-- mappings to be set up on attaching of a language server
|
|
mappings = {},
|
|
---@diagnostic disable: missing-fields
|
|
config = {
|
|
clangd = {
|
|
cmd = { "clangd", "--header-insertion=never" }, -- Disable auto includes
|
|
},
|
|
},
|
|
},
|
|
}
|