From 50bac18457c59a5aec08ad0229abab1cda741e3a Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 20 May 2024 18:01:22 +0100 Subject: [PATCH] Fix Tailwind CSS completions Whether the file extension is `.twig` or `.html.twig`, the filetype in Neovim is `twig`, so this commit simplifies and fixes the configuration for Tailwind CSS so that it works in files it previously wasn't completing in. --- lua/opdavies/lsp/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/opdavies/lsp/init.lua b/lua/opdavies/lsp/init.lua index f3dcab4..945b1d9 100644 --- a/lua/opdavies/lsp/init.lua +++ b/lua/opdavies/lsp/init.lua @@ -99,7 +99,7 @@ local servers = { marksman = {}, nil_ls = {}, tailwindcss = { - filetypes = { "html", "html.twig", "javascript", "typescript", "vue" }, + filetypes = { "html", "javascript", "twig", "typescript", "vue" }, settings = { init_options = {