mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-30 12:34:37 +02:00
fix(tailwind): nil check on filetypes_exclude. See #816
This commit is contained in:
parent
7c9abd7463
commit
4b367952f6
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ return {
|
||||||
local tw = require("lspconfig.server_configurations.tailwindcss")
|
local tw = require("lspconfig.server_configurations.tailwindcss")
|
||||||
--- @param ft string
|
--- @param ft string
|
||||||
opts.filetypes = vim.tbl_filter(function(ft)
|
opts.filetypes = vim.tbl_filter(function(ft)
|
||||||
return not vim.tbl_contains(opts.filetypes_exclude, ft)
|
return not vim.tbl_contains(opts.filetypes_exclude or {}, ft)
|
||||||
end, tw.default_config.filetypes)
|
end, tw.default_config.filetypes)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue