diff --git a/lua/lsp/config/gopls.lua b/lua/lsp/config/gopls.lua index b0c522e..06efc9b 100644 --- a/lua/lsp/config/gopls.lua +++ b/lua/lsp/config/gopls.lua @@ -3,7 +3,7 @@ local utils = require("utils") ---@type ServerConfig return { enable = true, - mason = { "gopls", dependencies = { "golines", "golangci-lint" } }, + mason = { "gopls", dependencies = { "golines" } }, keymaps = { { mode = "n", @@ -17,32 +17,6 @@ return { end, }, }, - linters = { - { - cmd = { - "golangci-lint", - "run", - "--output.json.path=stdout", - "--show-stats=false", - "%file%", - }, - stdin = true, - stdout = true, - json = { - diagnostics_root = "Issues", - source = "FromLinter", - message = "Text", - lnum = "Pos.Line", - col = "Pos.Column", - callback = function(diag) - if not diag.severity or diag.severity == "" then - diag.severity = vim.diagnostic.severity.WARN - end - utils.debug(vim.inspect(diag)) - end, - }, - }, - }, lspconfig = { filetypes = { "go", @@ -54,11 +28,8 @@ return { single_file_support = true, settings = { gopls = { - analyses = { - unusedparams = true, - }, staticcheck = true, - gofumpt = false, + semanticTokens = true, }, }, },