From e5883296c2590bca4b99dad6a110a0ac58e062cf Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Tue, 12 Sep 2023 19:18:10 -0700 Subject: [PATCH] Revert "neovim: Restore gopls import sorting" This reverts commit 7b2ff85217e8b09248e4dcd7dd8111034bc58c6b. It seems like sorting imports happens automatically with the right Mason servers installed. (Or it may just be that a newer version of `gopls` does this by default now, but I can't tell the difference.) --- neovim/lua/plugins/ide.lua | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/neovim/lua/plugins/ide.lua b/neovim/lua/plugins/ide.lua index 254f139..1709694 100644 --- a/neovim/lua/plugins/ide.lua +++ b/neovim/lua/plugins/ide.lua @@ -369,16 +369,6 @@ return { -- This is the default handler for servers not named below. default_setup, - ["gopls"] = function() - vim.api.nvim_create_autocmd('BufWritePre', { - pattern = '*.go', - callback = function() - vim.lsp.buf.code_action({ context = { only = { 'source.organizeImports' } }, apply = true }) - end - }) - default_setup("gopls") - end, - ["rust_analyzer"] = function() local capabilities = require('cmp_nvim_lsp').default_capabilities()