feat(nvim): add go specific config

nixos
Moritz Böhme 2023-07-29 17:06:33 +02:00
parent e901627f99
commit 916674d5b2
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,9 @@ require("formatter").setup({
log_level = vim.log.levels.WARN,
-- All formatter configurations are opt-in
filetype = {
go = {
require("formatter.filetypes.go").gofmt,
},
json = {
require("formatter.filetypes.json").jq,
},

View File

@ -124,6 +124,7 @@ local servers = {
"ruff_lsp",
"rust_analyzer",
"typst_lsp",
"gopls",
}
for _, lsp in ipairs(servers) do
lspconfig_setup(lsp, {})