diff options
| author | kylo252 <59826753+kylo252@users.noreply.github.com> | 2021-11-11 17:20:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-11 08:20:08 -0800 |
| commit | b177f5126c5b9da530e5a17643016ad3ae0648a2 (patch) | |
| tree | 082a8d17189d0b6e075c329c5e8823acb2b27dc1 /lua/lspconfig/bashls.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-b177f5126c5b9da530e5a17643016ad3ae0648a2.tar nvim-lspconfig-b177f5126c5b9da530e5a17643016ad3ae0648a2.tar.gz nvim-lspconfig-b177f5126c5b9da530e5a17643016ad3ae0648a2.tar.bz2 nvim-lspconfig-b177f5126c5b9da530e5a17643016ad3ae0648a2.tar.lz nvim-lspconfig-b177f5126c5b9da530e5a17643016ad3ae0648a2.tar.xz nvim-lspconfig-b177f5126c5b9da530e5a17643016ad3ae0648a2.tar.zst nvim-lspconfig-b177f5126c5b9da530e5a17643016ad3ae0648a2.zip | |
chore: use find_git_ancestor consistently (#1404)
Diffstat (limited to 'lua/lspconfig/bashls.lua')
| -rw-r--r-- | lua/lspconfig/bashls.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/bashls.lua b/lua/lspconfig/bashls.lua index 9fe3f397..9c45e931 100644 --- a/lua/lspconfig/bashls.lua +++ b/lua/lspconfig/bashls.lua @@ -14,7 +14,7 @@ configs[server_name] = { GLOB_PATTERN = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)', }, filetypes = { 'sh' }, - root_dir = util.root_pattern '.git', + root_dir = util.find_git_ancestor, single_file_support = true, }, docs = { @@ -24,7 +24,7 @@ https://github.com/mads-hartmann/bash-language-server Language server for bash, written using tree sitter in typescript. ]], default_config = { - root_dir = "vim's starting directory", + root_dir = [[util.find_git_ancestor]], }, }, } |
