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 ""
|
return ""
|
||||||
-- we don't know if we have python yet, start a check
|
-- we don't know if we have python yet, start a check
|
||||||
else
|
else
|
||||||
vim.system({ "poetry", "env", "info", "-p" }, { text = true }, function(obj)
|
if vim.fn.has("python3") == 1 then
|
||||||
if obj.code == 0 then
|
has_pynvim = 1
|
||||||
has_pynvim = 1
|
else
|
||||||
else
|
has_pynvim = 0
|
||||||
has_pynvim = 0
|
end
|
||||||
end
|
|
||||||
end)
|
|
||||||
has_pynvim = 0
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue