aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/tailwindcss/init.lua
blob: 781329c47a58757582d8ce72c49a735e4583f945 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local server = require('nvim-lsp-installer.server')
local path = require("nvim-lsp-installer.path")
local zx = require("nvim-lsp-installer.installers.zx")

local root_dir = server.get_server_root_path("tailwindcss")

return server.Server:new {
    name = "tailwindcss",
    root_dir = root_dir,
    installer = zx.file("./install.mjs"),
    default_options = {
        cmd = {
            "node",
            path.concat { root_dir, "tailwindcss", "extension", "dist", "server", "tailwindServer.js" },
            "--stdio"
        },
    }
}