diff options
| author | github-actions <github-actions@github.com> | 2021-08-10 15:16:23 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2021-08-10 15:16:23 +0000 |
| commit | 7d6e2211571029ace6ddeefed7df18e4dc51274f (patch) | |
| tree | e79620355ad0da3019b9daebc7eb2433d63cd054 /CONFIG.md | |
| parent | fix: don't pass the cwd to root_pattern (#1130) (diff) | |
| download | nvim-lspconfig-7d6e2211571029ace6ddeefed7df18e4dc51274f.tar nvim-lspconfig-7d6e2211571029ace6ddeefed7df18e4dc51274f.tar.gz nvim-lspconfig-7d6e2211571029ace6ddeefed7df18e4dc51274f.tar.bz2 nvim-lspconfig-7d6e2211571029ace6ddeefed7df18e4dc51274f.tar.lz nvim-lspconfig-7d6e2211571029ace6ddeefed7df18e4dc51274f.tar.xz nvim-lspconfig-7d6e2211571029ace6ddeefed7df18e4dc51274f.tar.zst nvim-lspconfig-7d6e2211571029ace6ddeefed7df18e4dc51274f.zip | |
[docgen] Update CONFIG.md
skip-checks: true
Diffstat (limited to 'CONFIG.md')
| -rw-r--r-- | CONFIG.md | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1276,14 +1276,14 @@ require'lspconfig'.dhall_lsp_server.setup{} cmd = { "dhall-lsp-server" } docs = { default_config = { - root_dir = 'root_pattern(".git", vim.fn.getcwd())' + root_dir = 'root_pattern(".git") or dirname' }, description = "https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server\n\nlanguage server for dhall\n\n`dhall-lsp-server` can be installed via cabal:\n```sh\ncabal install dhall-lsp-server\n```\nprebuilt binaries can be found [here](https://github.com/dhall-lang/dhall-haskell/releases).\n" } filetypes = { "dhall" } - root_dir = function(startpath) - return M.search_ancestors(startpath, matcher) - end + root_dir = function(fname) + return util.root_pattern '.git'(fname) or util.path.dirname(fname) + end, ``` @@ -3104,7 +3104,7 @@ require'lspconfig'.jsonls.setup{} init_options = { provideFormatter = true } - root_dir = root_pattern(".git", vim.fn.getcwd()) + root_dir = root_pattern(".git") or dirname ``` @@ -7141,7 +7141,7 @@ require'lspconfig'.yamlls.setup{} Default Values: cmd = { "yaml-language-server", "--stdio" } filetypes = { "yaml" } - root_dir = root_pattern(".git", vim.fn.getcwd()) + root_dir = root_pattern(".git") or dirname ``` |
