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/bmatcuk/stylelint-lsp", languages = { "stylelint" }, installer = npm.packages { "stylelint-lsp" }, default_options = { cmd = { npm.executable(root_dir, "stylelint-lsp"), "--stdio" }, }, } end