Revert "neovim: Restore gopls import sorting"
This reverts commit 7b2ff85217.
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.)
This commit is contained in:
parent
e5a85e18e6
commit
e5883296c2
1 changed files with 0 additions and 10 deletions
|
|
@ -369,16 +369,6 @@ return {
|
||||||
-- This is the default handler for servers not named below.
|
-- This is the default handler for servers not named below.
|
||||||
default_setup,
|
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()
|
["rust_analyzer"] = function()
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue