diff options
| author | github-actions <github-actions@github.com> | 2021-11-11 16:20:29 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2021-11-11 16:20:29 +0000 |
| commit | 26648bf59ffeef4c4f4848764ce22d74f6235822 (patch) | |
| tree | 6856fb13019091b54c567e65dca2e4640dc26e4c | |
| parent | chore: use find_git_ancestor consistently (#1404) (diff) | |
| download | nvim-lspconfig-26648bf59ffeef4c4f4848764ce22d74f6235822.tar nvim-lspconfig-26648bf59ffeef4c4f4848764ce22d74f6235822.tar.gz nvim-lspconfig-26648bf59ffeef4c4f4848764ce22d74f6235822.tar.bz2 nvim-lspconfig-26648bf59ffeef4c4f4848764ce22d74f6235822.tar.lz nvim-lspconfig-26648bf59ffeef4c4f4848764ce22d74f6235822.tar.xz nvim-lspconfig-26648bf59ffeef4c4f4848764ce22d74f6235822.tar.zst nvim-lspconfig-26648bf59ffeef4c4f4848764ce22d74f6235822.zip | |
docs: update server_configurations.md
skip-checks: true
| -rw-r--r-- | doc/server_configurations.md | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 4d0928c4..d11db585 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -319,7 +319,7 @@ require'lspconfig'.bashls.setup{} GLOB_PATTERN = "*@(.sh|.inc|.bash|.command)" } filetypes = { "sh" } - root_dir = vim's starting directory + root_dir = util.find_git_ancestor single_file_support = true ``` @@ -394,9 +394,7 @@ require'lspconfig'.bicep.setup{} Default Values: filetypes = { "bicep" } init_options = {} - root_dir = function(startpath) - return M.search_ancestors(startpath, matcher) - end + root_dir = util.find_git_ancestor ``` @@ -708,7 +706,7 @@ require'lspconfig'.cucumber_language_server.setup{} Default Values: cmd = { "cucumber-language-server", "--stdio" } filetypes = { "cucumber" } - root_dir = root_pattern(".git") + root_dir = util.find_git_ancestor ``` @@ -1427,7 +1425,7 @@ require'lspconfig'.flux-lsp.setup{} Default Values: cmd = { "flux-lsp" } filetypes = { "flux" } - root_dir = root_pattern(".git") + root_dir = util.find_git_ancestor ``` @@ -1594,7 +1592,7 @@ require'lspconfig'.fstar.setup{} Default Values: cmd = { "fstar.exe", "--lsp" } filetypes = { "fstar" } - root_dir = root_pattern(".git") + root_dir = util.find_git_ancestor ``` @@ -1733,7 +1731,7 @@ require'lspconfig'.groovyls.setup{} Default Values: cmd = { "java", "-jar", "groovy-language-server-all.jar" } filetypes = { "groovy" } - root_dir = root_pattern(".git") or vim.loop.os_homedir() + root_dir = util.find_git_ancestor or or vim.loop.os_homedir() ``` @@ -2940,7 +2938,7 @@ require'lspconfig'.jsonls.setup{} init_options = { provideFormatter = true } - root_dir = root_pattern(".git") or dirname + root_dir = util.find_git_ancestor single_file_support = true ``` @@ -3489,9 +3487,7 @@ require'lspconfig'.lemminx.setup{} Default Values: filetypes = { "xml", "xsd", "svg" } - root_dir = function(startpath) - return M.search_ancestors(startpath, matcher) - end + root_dir = util.find_git_ancestor single_file_support = true ``` @@ -4358,7 +4354,7 @@ require'lspconfig'.perlpls.setup{} Default Values: cmd = { "pls" } filetypes = { "perl" } - root_dir = vim's starting directory + root_dir = util.find_git_ancestor settings = { perl = { perlcritic = { @@ -5988,7 +5984,7 @@ require'lspconfig'.solang.setup{} Default Values: cmd = { "solang", "--language-server", "--target", "ewasm" } filetypes = { "solidity" } - root_dir = root_pattern(".git") + root_dir = util.find_git_ancestor ``` @@ -6826,9 +6822,7 @@ require'lspconfig'.svls.setup{} Default Values: cmd = { "svls" } filetypes = { "verilog", "systemverilog" } - root_dir = function(startpath) - return M.search_ancestors(startpath, matcher) - end + root_dir = util.find_git_ancestor ``` @@ -7775,7 +7769,7 @@ require'lspconfig'.yamlls.setup{} Default Values: cmd = { "yaml-language-server", "--stdio" } filetypes = { "yaml" } - root_dir = root_pattern(".git") or dirname + root_dir = util.find_git_ancestor settings = { redhat = { telemetry = { |
