update nvim config

This commit is contained in:
2024-04-02 11:58:39 -06:00
parent e2120c3da1
commit f1892c5fb8
5 changed files with 53 additions and 82 deletions

View File

@@ -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