aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorBarrOff <58253563+BarrOff@users.noreply.github.com>2022-08-23 07:26:48 +0000
committerGitHub <noreply@github.com>2022-08-23 15:26:48 +0800
commitc04189061a937d5b6bf526c68cd4fbcb1b8cf567 (patch)
treec384553c2e24a13305f142553f7cadefe7401d59 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-c04189061a937d5b6bf526c68cd4fbcb1b8cf567.tar
nvim-lspconfig-c04189061a937d5b6bf526c68cd4fbcb1b8cf567.tar.gz
nvim-lspconfig-c04189061a937d5b6bf526c68cd4fbcb1b8cf567.tar.bz2
nvim-lspconfig-c04189061a937d5b6bf526c68cd4fbcb1b8cf567.tar.lz
nvim-lspconfig-c04189061a937d5b6bf526c68cd4fbcb1b8cf567.tar.xz
nvim-lspconfig-c04189061a937d5b6bf526c68cd4fbcb1b8cf567.tar.zst
nvim-lspconfig-c04189061a937d5b6bf526c68cd4fbcb1b8cf567.zip
feat(pasls): add lpi and lpk to root dir detection (#1692)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/pasls.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/pasls.lua b/lua/lspconfig/server_configurations/pasls.lua
index 5758c824..19ef8486 100644
--- a/lua/lspconfig/server_configurations/pasls.lua
+++ b/lua/lspconfig/server_configurations/pasls.lua
@@ -4,7 +4,7 @@ return {
default_config = {
cmd = { 'pasls' },
filetypes = { 'pascal' },
- root_dir = util.find_git_ancestor,
+ root_dir = util.root_pattern('*.lpi', '*.lpk', '.git'),
single_file_support = true,
},
docs = {