Browse Source

fix(tailwindcss): Broken lsp when using on multiple filetypes

my-config
connorgmeean 3 years ago
parent
commit
aaef8fec9d
  1. 6
      lua/doom/modules/langs/tailwindcss/init.lua

6
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,
},
}

Loading…
Cancel
Save