diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 7ed882c..6ca2091 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -153,20 +153,3 @@ vim.api.nvim_create_autocmd("LspAttach", { vim.keymap.set("n", "<leader>e", vim.diagnostic.open_float, opts) end, }) - -vim.lsp.config['gopls'] = { - cmd = { "gopls" }, - filetypes = { "go", "gomod", "gotmpl", "gowork" }, - root_dir = require('lspconfig.util').root_pattern("go.work", "go.mod", ".git"), - settings = { - gopls = { - completeUnimported = true, - usePlaceholders = true, - analyses = { - unusedparams = true, - staticcheck = true, - }, - }, - }, -} -vim.lsp.enable('gopls') |
