diff options
author | Fabrizio Sestito <[email protected]> | 2021-06-18 22:19:49 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-18 16:19:49 -0400 |
commit | 3d95cca6257d8d2ec327e95d3c0fdab7e28e25bb (patch) | |
tree | e17f5498b2a8669b4c83a69bb3af4285def356e6 | |
parent | bbe0f78c28de5aaa3697843aed566be91f0eb56c (diff) |
Remove "." directory in root pattern (#471)
-rw-r--r-- | lua/lsp/go-ls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lsp/go-ls.lua b/lua/lsp/go-ls.lua index 13112475..201873a8 100644 --- a/lua/lsp/go-ls.lua +++ b/lua/lsp/go-ls.lua @@ -1,7 +1,7 @@ require'lspconfig'.gopls.setup{ cmd = {DATA_PATH .. "/lspinstall/go/gopls"}, settings = {gopls = {analyses = {unusedparams = true}, staticcheck = true}}, - root_dir = require'lspconfig'.util.root_pattern(".git","go.mod","."), + root_dir = require'lspconfig'.util.root_pattern(".git","go.mod"), init_options = {usePlaceholders = true, completeUnimported = true}, on_attach = require'lsp'.common_on_attach } |