aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-10-05 19:20:04 +0200
committerGitHub <noreply@github.com>2021-10-05 19:20:04 +0200
commitddcbcd389d27cff5608e2029d9a25811bdb31668 (patch)
treeac9fb11f3af615145eacfbd5902131ee55a5fb33 /lua
parentadd volar (#130) (diff)
downloadmason-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')
-rw-r--r--lua/nvim-lsp-installer/fs.lua6
-rw-r--r--lua/nvim-lsp-installer/servers/init.lua1
-rw-r--r--lua/nvim-lsp-installer/servers/lemminx/init.lua55
3 files changed, 62 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
diff --git a/lua/nvim-lsp-installer/servers/init.lua b/lua/nvim-lsp-installer/servers/init.lua
index 096e9397..fd2b83ed 100644
--- a/lua/nvim-lsp-installer/servers/init.lua
+++ b/lua/nvim-lsp-installer/servers/init.lua
@@ -67,6 +67,7 @@ local CORE_SERVERS = Data.set_of {
"jedi_language_server",
"jsonls",
"kotlin_language_server",
+ "lemminx",
"ocamlls",
"omnisharp",
"prismals",
diff --git a/lua/nvim-lsp-installer/servers/lemminx/init.lua b/lua/nvim-lsp-installer/servers/lemminx/init.lua
new file mode 100644