feat(nvim): add go specific config
This commit is contained in:
parent
e901627f99
commit
916674d5b2
2 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,9 @@ require("formatter").setup({
|
||||||
log_level = vim.log.levels.WARN,
|
log_level = vim.log.levels.WARN,
|
||||||
-- All formatter configurations are opt-in
|
-- All formatter configurations are opt-in
|
||||||
filetype = {
|
filetype = {
|
||||||
|
go = {
|
||||||
|
require("formatter.filetypes.go").gofmt,
|
||||||
|
},
|
||||||
json = {
|
json = {
|
||||||
require("formatter.filetypes.json").jq,
|
require("formatter.filetypes.json").jq,
|
||||||
},
|
},
|
||||||
|
|
|
@ -124,6 +124,7 @@ local servers = {
|
||||||
"ruff_lsp",
|
"ruff_lsp",
|
||||||
"rust_analyzer",
|
"rust_analyzer",
|
||||||
"typst_lsp",
|
"typst_lsp",
|
||||||
|
"gopls",
|
||||||
}
|
}
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig_setup(lsp, {})
|
lspconfig_setup(lsp, {})
|
||||||
|
|
Loading…
Reference in a new issue