nvim: Simplify statusline python check
This commit is contained in:
parent
4d98c9ab46
commit
ba6a8c16ce
1 changed files with 5 additions and 8 deletions
|
|
@ -22,14 +22,11 @@ return {
|
|||
return ""
|
||||
-- we don't know if we have python yet, start a check
|
||||
else
|
||||
vim.system({ "poetry", "env", "info", "-p" }, { text = true }, function(obj)
|
||||
if obj.code == 0 then
|
||||
if vim.fn.has("python3") == 1 then
|
||||
has_pynvim = 1
|
||||
else
|
||||
has_pynvim = 0
|
||||
end
|
||||
end)
|
||||
has_pynvim = 0
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue