aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-29 22:45:53 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-29 22:45:53 +0900
commitba103d61e0b332b1c1347f40e95f87c13c202e51 (patch)
treeb46dad73e860d22c6cddabffeb99f14c88b967d4
parent4f1f0a36c564424c0feb104e95bd47e539839f77 (diff)
downloadvim-lsp-settings-ba103d61e0b332b1c1347f40e95f87c13c202e51.tar.gz
vim-lsp-settings-ba103d61e0b332b1c1347f40e95f87c13c202e51.tar.bz2
vim-lsp-settings-ba103d61e0b332b1c1347f40e95f87c13c202e51.zip
Fix pyls-ms
-rw-r--r--settings.json2
-rw-r--r--settings/pyls-ms.vim4
2 files changed, 3 insertions, 3 deletions
diff --git a/settings.json b/settings.json
index fdbfd1d..7fd1386 100644
--- a/settings.json
+++ b/settings.json
@@ -334,7 +334,7 @@
{
"command": "pyls-ms",
"requires": [
- "py"
+ "python"
]
}
],
diff --git a/settings/pyls-ms.vim b/settings/pyls-ms.vim
index 4b5c17d..4963cd4 100644
--- a/settings/pyls-ms.vim
+++ b/settings/pyls-ms.vim
@@ -10,9 +10,9 @@ augroup vimlsp_settings_pyls_ms
\ 'displayOptions': {},
\ 'interpreter': {
\ 'properties': {
- \ 'InterpreterPath': 'python',
+ \ 'InterpreterPath': split(system('where python'), "\n")[0],
\ 'UseDefaultDatabase': v:true,
- \ 'Version': '3.8.1'
+ \ 'Version': matchstr(system('python -V'), '\s\zs\S\+'),
\ },
\ },
\ }),