diff --git a/init.lua b/init.lua index 88658ef3..24dda57d 100644 --- a/init.lua +++ b/init.lua @@ -566,9 +566,9 @@ require('lazy').setup({ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { -- clangd = {}, - -- gopls = {}, + gopls = {}, -- pyright = {}, - -- rust_analyzer = {}, + rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- -- Some languages (like typescript) have entire language plugins that can be useful: @@ -652,6 +652,8 @@ require('lazy').setup({ end, formatters_by_ft = { lua = { 'stylua' }, + go = { 'goimports' }, + rust = { 'rustfmt' }, -- Conform can also run multiple formatters sequentially -- python = { "isort", "black" }, -- @@ -768,6 +770,8 @@ require('lazy').setup({ { name = 'nvim_lsp' }, { name = 'luasnip' }, { name = 'path' }, + { name = 'gopls' }, + { name = 'rust_analyzer' }, }, } end,