fix: update gopls path

This commit is contained in:
2022-04-11 21:11:41 +08:00
parent 554068c22c
commit 8706bcb806
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
-- LSP
require'lspconfig'.gopls.setup{
cmd = {DATA_PATH .. "/lspinstall/go/gopls"},
-- cmd = {DATA_PATH .. "/lspinstall/go/gopls"},
cmd = {"gopls"}, -- use cmd in path, I can update it easily
settings = {gopls = {analyses = {unusedparams = true}, staticcheck = true}},
root_dir = require'lspconfig'.util.root_pattern(".git","go.mod"),
init_options = {usePlaceholders = true, completeUnimported = true},