aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2020-01-24 12:55:53 +0900
committerGitHub <noreply@github.com>2020-01-24 12:55:53 +0900
commit3b5c80cf983a82f78ee98a2d6d7dacc7703de1c2 (patch)
treea3213bdc0e3145c513bf2e48e76176a92faf3e65 /plugin
parent8c6b4c326de02c27b9727e3f711bf17ba124efbd (diff)
parentd2f5a63ff5db6e1a8f9124d4cc8149c97129dd9a (diff)
downloadvim-lsp-settings-3b5c80cf983a82f78ee98a2d6d7dacc7703de1c2.tar.gz
vim-lsp-settings-3b5c80cf983a82f78ee98a2d6d7dacc7703de1c2.tar.bz2
vim-lsp-settings-3b5c80cf983a82f78ee98a2d6d7dacc7703de1c2.zip
Merge pull request #100 from idbrii/root-marker-svn
Support .svn root markers
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lsp_settings.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim
index 06969b0..6e33743 100644
--- a/plugin/lsp_settings.vim
+++ b/plugin/lsp_settings.vim
@@ -3,6 +3,13 @@ if exists('g:loaded_lsp_settings') || !exists('*json_encode') || !has('lambda')
endif
let g:loaded_lsp_settings= 1
+let g:lsp_settings_root_markers = get(g:, 'lsp_settings_root_markers', [
+ \ '.git/',
+ \ '.svn/',
+ \ '.hg/',
+ \ '.bzr/'
+ \ ])
+
let s:settings_dir = expand('<sfile>:h:h').'/settings'
let s:checkers_dir = expand('<sfile>:h:h').'/checkers'
let s:installer_dir = expand('<sfile>:h:h').'/installer'