diff options
| author | William Boman <william@redwill.se> | 2021-10-05 19:20:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-05 19:20:04 +0200 |
| commit | ddcbcd389d27cff5608e2029d9a25811bdb31668 (patch) | |
| tree | ac9fb11f3af615145eacfbd5902131ee55a5fb33 /lua/nvim-lsp-installer/fs.lua | |
| parent | add volar (#130) (diff) | |
| download | mason-ddcbcd389d27cff5608e2029d9a25811bdb31668.tar mason-ddcbcd389d27cff5608e2029d9a25811bdb31668.tar.gz mason-ddcbcd389d27cff5608e2029d9a25811bdb31668.tar.bz2 mason-ddcbcd389d27cff5608e2029d9a25811bdb31668.tar.lz mason-ddcbcd389d27cff5608e2029d9a25811bdb31668.tar.xz mason-ddcbcd389d27cff5608e2029d9a25811bdb31668.tar.zst mason-ddcbcd389d27cff5608e2029d9a25811bdb31668.zip | |
add lemminx (#131)
Diffstat (limited to 'lua/nvim-lsp-installer/fs.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/fs.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/fs.lua b/lua/nvim-lsp-installer/fs.lua index 9afdbe51..ab775f4d 100644 --- a/lua/nvim-lsp-installer/fs.lua +++ b/lua/nvim-lsp-installer/fs.lua @@ -16,6 +16,12 @@ function M.rmrf(path) end end +function M.rename(path, new_path) + assert_ownership(path) + assert_ownership(new_path) + return uv.fs_rename(path, new_path) +end + function M.mkdirp(path) assert_ownership(path) if vim.fn.mkdir(path, "p") ~= 1 then |
