Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #38 from nogweii/faster-installed-check
Browse files Browse the repository at this point in the history
Use isdirectory() instead of shelling out
  • Loading branch information
kabouzeid committed Apr 18, 2021
2 parents 9de0ba5 + ce6293f commit 548edd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspinstall.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ end
-- UTILITY

function M.is_server_installed(lang)
return os.execute("test -d " .. install_path(lang)) == 0
return vim.fn.isdirectory(install_path(lang)) == 1
end

function M.available_servers()
Expand Down

0 comments on commit 548edd5

Please sign in to comment.