aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/cssmodules_ls/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-12-14 14:26:13 +0100
committerGitHub <noreply@github.com>2021-12-14 14:26:13 +0100
commit3c46fc4f96165d96733c7414edd047349bd621d3 (patch)
tree62eab105b7f176486f01e256f36968805e0891bb /lua/nvim-lsp-installer/servers/cssmodules_ls/init.lua
parentfeat: allow server installation by just typing `:LspInstall` (#331) (diff)
downloadmason-3c46fc4f96165d96733c7414edd047349bd621d3.tar
mason-3c46fc4f96165d96733c7414edd047349bd621d3.tar.gz
mason-3c46fc4f96165d96733c7414edd047349bd621d3.tar.bz2
mason-3c46fc4f96165d96733c7414edd047349bd621d3.tar.lz
mason-3c46fc4f96165d96733c7414edd047349bd621d3.tar.xz
mason-3c46fc4f96165d96733c7414edd047349bd621d3.tar.zst
mason-3c46fc4f96165d96733c7414edd047349bd621d3.zip
add cssmodules_ls (#333)
Diffstat (limited to 'lua/nvim-lsp-installer/servers/cssmodules_ls/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/cssmodules_ls/init.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/servers/cssmodules_ls/init.lua b/lua/nvim-lsp-installer/servers/cssmodules_ls/init.lua
new file mode 100644
index 00000000..48cd57a4
--- /dev/null
+++ b/lua/nvim-lsp-installer/servers/cssmodules_ls/init.lua
@@ -0,0 +1,15 @@
+local server = require "nvim-lsp-installer.server"
+local npm = require "nvim-lsp-installer.installers.npm"
+
+return function(name, root_dir)
+ return server.Server:new {
+ name = name,
+ root_dir = root_dir,
+ homepage = "https://github.com/antonk52/cssmodules-language-server",
+ languages = { "css" },
+ installer = npm.packages { "cssmodules-language-server" },
+ default_options = {
+ cmd = { npm.executable(root_dir, "cssmodules-language-server") },
+ },
+ }
+end