diff options
-rw-r--r-- | README.md | 14 | ||||
-rw-r--r-- | autoload/lsp_settings.vim | 7 |
2 files changed, 20 insertions, 1 deletions
@@ -39,6 +39,20 @@ Plug 'Shougo/deoplete.nvim' Plug 'lighttiger2505/deoplete-vim-lsp' ``` +vim-lsp-settings install Language Servers into: + +#### Windows + +``` +%LOCALAPPDATA%\vim-lsp-settings\servers +``` + +#### Others + +``` +$HOME/.config/vim-lsp-settings/servers +``` + ### Notice If you use plugin manager that is merging plugins (ex. dein), Please setting stop merging work(ex. dein / merged = 0) or set `g:lsp_settings_servers_dir` option to a different directory from the vim-lsp's default. diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim index 5698798..6e2ad38 100644 --- a/autoload/lsp_settings.vim +++ b/autoload/lsp_settings.vim @@ -1,9 +1,14 @@ let s:settings_dir = expand('<sfile>:h:h') . '/settings' let s:checkers_dir = expand('<sfile>:h:h') . '/checkers' -let s:servers_dir = expand('<sfile>:h:h') . '/servers' let s:installer_dir = expand('<sfile>:h:h') . '/installer' let s:root_dir = expand('<sfile>:h:h') +if has('win32') + let s:servers_dir = expand('$LOCALAPPDATA/vim-lsp-settings/servers') +else + let s:servers_dir = expand('~/.config/vim-lsp-settings/servers') +endif + let s:settings = json_decode(join(readfile(expand('<sfile>:h:h') . '/settings.json'), "\n")) call remove(s:settings, '$schema') |