summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/tailwindcss-ls.lua
blob: 38c1e7ccc24d109e577dc00211892ca2456523e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- TODO: what is a tailwindcss filetype
local lspconfig = require "lspconfig"

lspconfig.tailwindcss.setup {
  cmd = {
    "node",
    DATA_PATH .. "/lspinstall/tailwindcss/tailwindcss-intellisense/extension/dist/server/tailwindServer.js",
    "--stdio",
  },
  filetypes = O.lang.tailwindcss.filetypes,
  root_dir = require("lspconfig/util").root_pattern("tailwind.config.js", "postcss.config.ts", ".postcssrc"),
  on_attach = require("lsp").common_on_attach,
}