Skip to content

Commit c98011b

Browse files
committed
fix(lsp) Update pylsp to 1.12.0
I chiefly took this update to get python-lsp/python-lsp-server#371. This fixes an issues where diagnostics wouldn't show up when running in single file mode (outside of a git repository).
1 parent 57b8004 commit c98011b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

languages/python/spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"python-lsp-server": {
2222
"type": "exe",
2323
"command_name": "pylsp",
24-
"version": "1.7.1",
24+
"version": "1.12.0",
2525
"installers": ["Pip"],
2626
"source_repo": "https://github.com/python-lsp/python-lsp-server"
2727
},

vim/nvim/lua/dot_helpers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ end
1212

1313
functions.get_git_root = function()
1414
local git_prefix = 'git -C ' .. vim.fn.expand('%:p:h')
15-
if vim.fn.system(git_prefix .. ' rev-parse --is-inside-work-tree') then
15+
if vim.fn.system(git_prefix .. ' rev-parse --is-inside-work-tree') == 'true' then
1616
return vim.fn.substitute(
1717
vim.fn.system(git_prefix .. ' rev-parse --show-toplevel'),
1818
'\n',

0 commit comments

Comments
 (0)