From aaef8fec9d8d56611e8b23a5816816fd32315702 Mon Sep 17 00:00:00 2001 From: connorgmeean Date: Mon, 28 Mar 2022 18:30:47 +1100 Subject: [PATCH] fix(tailwindcss): Broken lsp when using on multiple filetypes --- lua/doom/modules/langs/tailwindcss/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/doom/modules/langs/tailwindcss/init.lua b/lua/doom/modules/langs/tailwindcss/init.lua index c0689d1..715ac23 100644 --- a/lua/doom/modules/langs/tailwindcss/init.lua +++ b/lua/doom/modules/langs/tailwindcss/init.lua @@ -1,3 +1,5 @@ +local utils = require('doom.utils'); + local tailwindcss = {} tailwindcss.settings = { @@ -7,7 +9,7 @@ tailwindcss.autocmds = { { "FileType", "css,scss,vue,html", - function() + utils.make_run_once_function(function() local langs_utils = require('doom.modules.langs.utils') langs_utils.use_lsp('tailwindcss') @@ -25,7 +27,7 @@ tailwindcss.autocmds = { }) end - end, + end), once = true, }, }