diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-lsp-installer/server.lua | 1 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/servers/rome/init.lua | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua index 9b576b38..a3addce7 100644 --- a/lua/nvim-lsp-installer/server.lua +++ b/lua/nvim-lsp-installer/server.lua @@ -25,6 +25,7 @@ local _SERVERS = { "jsonls", "omnisharp", "pyright", + "rome", "rust_analyzer", "solargraph", "sumneko_lua", diff --git a/lua/nvim-lsp-installer/servers/rome/init.lua b/lua/nvim-lsp-installer/servers/rome/init.lua new file mode 100644 index 00000000..98659405 --- /dev/null +++ b/lua/nvim-lsp-installer/servers/rome/init.lua @@ -0,0 +1,14 @@ +local server = require("nvim-lsp-installer.server") +local path = require("nvim-lsp-installer.path") +local npm = require("nvim-lsp-installer.installers.npm") + +local root_dir = server.get_server_root_path("rome") + +return server.Server:new { + name = "rome", + root_dir = root_dir, + installer = npm.packages { "rome@10.0.7-nightly.2021.7.2" }, -- https://github.com/rome/tools/pull/1409 + default_options = { + cmd = { path.concat { root_dir, "node_modules", ".bin", "rome" }, "lsp" }, + }, +} |
