nvim: Simplify statusline python check

This commit is contained in:
Marty Oehme 2025-02-05 18:28:17 +01:00
parent 4d98c9ab46
commit ba6a8c16ce
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -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