update nvim config
This commit is contained in:
@@ -10,16 +10,16 @@ return {
|
||||
opts = {
|
||||
-- Configuration table of features provided by AstroLSP
|
||||
features = {
|
||||
autoformat = true, -- enable or disable auto formatting on start
|
||||
codelens = true, -- enable/disable codelens refresh on start
|
||||
inlay_hints = false, -- enable/disable inlay hints on start
|
||||
autoformat = true, -- enable or disable auto formatting on start
|
||||
codelens = true, -- enable/disable codelens refresh on start
|
||||
inlay_hints = false, -- enable/disable inlay hints on start
|
||||
semantic_tokens = true, -- enable/disable semantic token highlighting
|
||||
},
|
||||
-- customize lsp formatting options
|
||||
formatting = {
|
||||
-- control auto formatting on save
|
||||
format_on_save = {
|
||||
enabled = true, -- enable or disable format on save globally
|
||||
enabled = true, -- enable or disable format on save globally
|
||||
allow_filetypes = { -- enable format on save for specified filetypes only
|
||||
-- "go",
|
||||
},
|
||||
@@ -46,15 +46,15 @@ return {
|
||||
config = {
|
||||
-- clangd = { capabilities = { offsetEncoding = "utf-8" } },
|
||||
zls = {
|
||||
cmd = {"zls"};
|
||||
filetypes = {"zig"};
|
||||
cmd = { "zls" },
|
||||
filetypes = { "zig" },
|
||||
},
|
||||
clangd = {
|
||||
cmd = {
|
||||
"clangd",
|
||||
"--offset-encoding=utf-16",
|
||||
},
|
||||
filetypes = {"c", "cpp", "objc", "objcpp"},
|
||||
filetypes = { "c", "cpp", "objc", "objcpp" },
|
||||
},
|
||||
},
|
||||
-- customize how language servers are attached
|
||||
|
||||
Reference in New Issue
Block a user