diff --git a/modules/programs/nvim/plugins/formatter-nvim.lua b/modules/programs/nvim/plugins/formatter-nvim.lua index adbdeeb..a7eee92 100644 --- a/modules/programs/nvim/plugins/formatter-nvim.lua +++ b/modules/programs/nvim/plugins/formatter-nvim.lua @@ -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, }, diff --git a/modules/programs/nvim/plugins/nvim-lspconfig.lua b/modules/programs/nvim/plugins/nvim-lspconfig.lua index c5f8222..8d89374 100644 --- a/modules/programs/nvim/plugins/nvim-lspconfig.lua +++ b/modules/programs/nvim/plugins/nvim-lspconfig.lua @@ -124,6 +124,7 @@ local servers = { "ruff_lsp", "rust_analyzer", "typst_lsp", + "gopls", } for _, lsp in ipairs(servers) do lspconfig_setup(lsp, {})