Skip to content

Commit

Permalink
docs: fix documentation for gopls and helm_ls (#2571)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALX99 committed Apr 24, 2023
1 parent cf95480 commit 92b8b88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lua/lspconfig/server_configurations/gopls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ return {
cmd = { 'gopls' },
filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
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', 'go.mod', '.git')(fname)
end,
single_file_support = true,
},
Expand All @@ -16,7 +16,7 @@ https://github.com/golang/tools/tree/master/gopls
Google's lsp server for golang.
]],
default_config = {
root_dir = [[root_pattern("go.mod", ".git")]],
root_dir = [[root_pattern("go.work", "go.mod", ".git")]],
},
},
}
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/helm_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The default `cmd` assumes that the `helm_ls` binary can be found in `$PATH`.
If need Helm file highlight use [vim-helm](https://github.com/towolf/vim-helm) plugin.
]],
default_config = {
root_dir = [[root_pattern("Chart.yaml)]],
root_dir = [[root_pattern("Chart.yaml")]],
},
},
}

0 comments on commit 92b8b88

Please sign in to comment.