diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-29 23:02:54 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-29 23:02:54 +0900 |
commit | 06ecbae7043320fa3e200b235ad27b9183618747 (patch) | |
tree | 5c9d0d32708fb483c5b3998b2ace0dc4b2687613 /settings | |
parent | f45791fbab5a57e2d3245d7207fe0c79cef90722 (diff) | |
download | vim-lsp-settings-06ecbae7043320fa3e200b235ad27b9183618747.tar.gz vim-lsp-settings-06ecbae7043320fa3e200b235ad27b9183618747.tar.bz2 vim-lsp-settings-06ecbae7043320fa3e200b235ad27b9183618747.zip |
Possible to specify python-path and python-ver
Diffstat (limited to 'settings')
-rw-r--r-- | settings/pyls-ms.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/pyls-ms.vim b/settings/pyls-ms.vim index d8b12d0..5d9f5b5 100644 --- a/settings/pyls-ms.vim +++ b/settings/pyls-ms.vim @@ -10,9 +10,9 @@ augroup vimlsp_settings_pyls_ms \ 'displayOptions': {}, \ 'interpreter': { \ 'properties': { - \ 'InterpreterPath': exepath('python'), + \ 'InterpreterPath': lsp_settings#get('pyls-ms', 'python-path', {key, name->exepath('python')}, \ 'UseDefaultDatabase': v:true, - \ 'Version': matchstr(system('python -V'), '\s\zs\S\+'), + \ 'Version': lsp_settings#get('pyls-ms', 'python-ver', {key, name->trim(matchstr(system('python -V'), '\s\zs\S\+'))}), \ }, \ }, \ }), |