summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/tailwindcss-ls.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/lsp/tailwindcss-ls.lua')
-rw-r--r--.config/nvim/lua/lsp/tailwindcss-ls.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/nvim/lua/lsp/tailwindcss-ls.lua b/.config/nvim/lua/lsp/tailwindcss-ls.lua
new file mode 100644
index 0000000..38c1e7c
--- /dev/null
+++ b/.config/nvim/lua/lsp/tailwindcss-ls.lua
@@ -0,0 +1,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,
+}