By default the command generated for the GoLint command is the following:
golangci-lint run --output.json.path=/dev/null --output.text.path=stdout --output.text.print-issued-lines=false --output.text.colors=false --show-stats=false --default=standard
In projects using the default golangci-lint configuration file .golangci.yml, this leads to the --default="standard" option overriding any linter configuration in that file.
My current configuration for this plugin:
local nvim_cmp_capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())
--
-- go.nvim config
--
require('go').setup({
lsp_cfg = {
capabilities = nvim_cmp_capabilities,
-- other setups
},
})
By default the command generated for the
GoLintcommand is the following:In projects using the default golangci-lint configuration file
.golangci.yml, this leads to the--default="standard"option overriding any linter configuration in that file.My current configuration for this plugin: