diff options
| author | ALX99 <46844683+ALX99@users.noreply.github.com> | 2023-04-24 07:22:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-24 13:22:36 +0800 |
| commit | 92b8b88f9ba6cece4d0f88a454882809a0aba50e (patch) | |
| tree | 93b473905b58497cb1e9085f9a7cc1ca94a8bce0 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-92b8b88f9ba6cece4d0f88a454882809a0aba50e.tar nvim-lspconfig-92b8b88f9ba6cece4d0f88a454882809a0aba50e.tar.gz nvim-lspconfig-92b8b88f9ba6cece4d0f88a454882809a0aba50e.tar.bz2 nvim-lspconfig-92b8b88f9ba6cece4d0f88a454882809a0aba50e.tar.lz nvim-lspconfig-92b8b88f9ba6cece4d0f88a454882809a0aba50e.tar.xz nvim-lspconfig-92b8b88f9ba6cece4d0f88a454882809a0aba50e.tar.zst nvim-lspconfig-92b8b88f9ba6cece4d0f88a454882809a0aba50e.zip | |
docs: fix documentation for gopls and helm_ls (#2571)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/gopls.lua | 4 | ||||
| -rw-r--r-- | lua/lspconfig/server_configurations/helm_ls.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lua/lspconfig/server_configurations/gopls.lua b/lua/lspconfig/server_configurations/gopls.lua index 8e899d43..fa84c40c 100644 --- a/lua/lspconfig/server_configurations/gopls.lua +++ b/lua/lspconfig/server_configurations/gopls.lua @@ -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, }, @@ -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")]], }, }, } diff --git a/lua/lspconfig/server_configurations/helm_ls.lua b/lua/lspconfig/server_configurations/helm_ls.lua index 4e357dd6..b5bdbbd6 100644 --- a/lua/lspconfig/server_configurations/helm_ls.lua +++ b/lua/lspconfig/server_configurations/helm_ls.lua @@ -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")]], }, }, } |
