feat(nvim): add go specific config

This commit is contained in:
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, {})