summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/tailwindcss-ls.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-22 00:08:36 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-22 00:08:36 +0200
commitb51f1ae28924a752258e7607fbc3210f9b18eaac (patch)
tree8c8c095528990b3f6eb499dbcca15e9720e636d1 /.config/nvim/lua/lsp/tailwindcss-ls.lua
parentda936b0ed9ac4c171d3c7908e41af1875a82b08b (diff)
Updates based on Chris's lunarvim
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,
+}