aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/server.lua')
-rw-r--r--lua/nvim-lsp-installer/server.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua
index 95797e10..5e3c9e87 100644
--- a/lua/nvim-lsp-installer/server.lua
+++ b/lua/nvim-lsp-installer/server.lua
@@ -79,7 +79,9 @@ function M.Server:install()
end
function M.Server:uninstall()
- fs.rmrf(self._root_dir)
+ if fs.dir_exists(self._root_dir) then
+ fs.rmrf(self._root_dir)
+ end
end
return M