diff options
| author | William Boman <william@redwill.se> | 2021-08-17 17:30:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-17 17:30:34 +0200 |
| commit | ab8cfcb5be9f417077249165726b55699afeb23d (patch) | |
| tree | d3baa7aaaee65a9acb59f0dfc73488c646ceb481 /lua | |
| parent | add efm (#53) (diff) | |
| download | mason-ab8cfcb5be9f417077249165726b55699afeb23d.tar mason-ab8cfcb5be9f417077249165726b55699afeb23d.tar.gz mason-ab8cfcb5be9f417077249165726b55699afeb23d.tar.bz2 mason-ab8cfcb5be9f417077249165726b55699afeb23d.tar.lz mason-ab8cfcb5be9f417077249165726b55699afeb23d.tar.xz mason-ab8cfcb5be9f417077249165726b55699afeb23d.tar.zst mason-ab8cfcb5be9f417077249165726b55699afeb23d.zip | |
add stylelint (#54)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-lsp-installer.lua | 1 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/servers/efm/init.lua | 1 | ||||
| -rw-r--r-- | lua/nvim-lsp-installer/servers/stylelint_lsp/init.lua | 13 |
3 files changed, 14 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer.lua b/lua/nvim-lsp-installer.lua index a87aef41..b954391f 100644 --- a/lua/nvim-lsp-installer.lua +++ b/lua/nvim-lsp-installer.lua @@ -37,6 +37,7 @@ local _SERVERS = { ["solargraph"] = require "nvim-lsp-installer.servers.solargraph", ["sqlls"] = require "nvim-lsp-installer.servers.sqlls", ["sqls"] = require "nvim-lsp-installer.servers.sqls", + ["stylelint_lsp"] = require "nvim-lsp-installer.servers.stylelint_lsp", ["sumneko_lua"] = require "nvim-lsp-installer.servers.sumneko_lua", ["svelte"] = require "nvim-lsp-installer.servers.svelte", ["tailwindcss"] = require "nvim-lsp-installer.servers.tailwindcss", diff --git a/lua/nvim-lsp-installer/servers/efm/init.lua b/lua/nvim-lsp-installer/servers/efm/init.lua index 5f78f258..ae4fd452 100644 --- a/lua/nvim-lsp-installer/servers/efm/init.lua +++ b/lua/nvim-lsp-installer/servers/efm/init.lua @@ -1,5 +1,4 @@ local server = require "nvim-lsp-installer.server" -local path = require "nvim-lsp-installer.path" local go = require "nvim-lsp-installer.installers.go" local root_dir = server.get_server_root_path "efm" diff --git a/lua/nvim-lsp-installer/servers/stylelint_lsp/init.lua b/lua/nvim-lsp-installer/servers/stylelint_lsp/init.lua new file mode 100644 index 00000000..adb83373 --- /dev/null +++ b/lua/nvim-lsp-installer/servers/stylelint_lsp/init.lua @@ -0,0 +1,13 @@ +local server = require "nvim-lsp-installer.server" +local npm = require "nvim-lsp-installer.installers.npm" + +local root_dir = server.get_server_root_path "stylelint_lsp" + +return server.Server:new { + name = "stylelint_lsp", + root_dir = root_dir, + installer = npm.packages { "stylelint-lsp" }, + default_options = { + cmd = { npm.executable(root_dir, "stylelint-lsp"), "--stdio" }, + }, +} |
