From a5d42c023e616cb83d263276eff736fd1cedcbf4 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Sun, 16 Jan 2022 19:54:40 -0500 Subject: fix(golangci_lint_ls): use .golangci.yaml config (#1662) --- lua/lspconfig/server_configurations/golangci_lint_ls.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/golangci_lint_ls.lua b/lua/lspconfig/server_configurations/golangci_lint_ls.lua index 7621d40a..8eaa0159 100644 --- a/lua/lspconfig/server_configurations/golangci_lint_ls.lua +++ b/lua/lspconfig/server_configurations/golangci_lint_ls.lua @@ -5,10 +5,10 @@ return { cmd = { 'golangci-lint-langserver' }, filetypes = { 'go', 'gomod' }, init_options = { - command = { 'golangci-lint', 'run', '--enable-all', '--disable', 'lll', '--out-format', 'json' }, + command = { 'golangci-lint', 'run', '--out-format', 'json' }, }, root_dir = function(fname) - return util.root_pattern 'go.work'(fname) or util.root_pattern('go.mod', '.git')(fname) + return util.root_pattern 'go.work'(fname) or util.root_pattern('go.mod', '.golangci.yaml', '.git')(fname) end, }, docs = { @@ -28,7 +28,7 @@ go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1 ]], default_config = { - root_dir = [[root_pattern('go.mod', '.git')]], + root_dir = [[root_pattern('go.work') or root_pattern('go.mod', '.golangci.yaml', '.git')]], }, }, } -- cgit v1.2.3-70-g09d2