nvim: check if fc-list exists before trying to run it
This commit is contained in:
parent
335e02f4f8
commit
e2c2f825f0
|
@ -109,7 +109,8 @@ end
|
|||
|
||||
-- return true if 'Symbols Nerd Font' is known to fontconfig
|
||||
function M.nerdfont_installed()
|
||||
if os.execute([[fc-list -q 'Symbols Nerd Font']]) == 0 then
|
||||
if vim.fn.executable('fc-list') == 1 and
|
||||
os.execute([[fc-list -q 'Symbols Nerd Font']]) == 0 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue
Block a user