mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 01:08:59 +02:00
feat(hipatterns): added vue/astro
This commit is contained in:
parent
1731e455d4
commit
d6c59d9a41
1 changed files with 10 additions and 27 deletions
|
@ -14,17 +14,19 @@ M.plugin = {
|
|||
-- custom LazyVim option to enable the tailwind integration
|
||||
tailwind = {
|
||||
enabled = true,
|
||||
ft = {
|
||||
"typescriptreact",
|
||||
"javascriptreact",
|
||||
ft = {
|
||||
"astro",
|
||||
"css",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"heex",
|
||||
"html",
|
||||
"svelte",
|
||||
"rust",
|
||||
"html-eex",
|
||||
"heex",
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"rust",
|
||||
"svelte",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"vue",
|
||||
},
|
||||
-- full: the whole css class will be highlighted
|
||||
-- compact: only the color will be highlighted
|
||||
|
@ -48,25 +50,6 @@ M.plugin = {
|
|||
}
|
||||
end,
|
||||
config = function(_, opts)
|
||||
-- backward compatibility
|
||||
if opts.tailwind == true then
|
||||
opts.tailwind = {
|
||||
enabled = true,
|
||||
ft = {
|
||||
"typescriptreact",
|
||||
"javascriptreact",
|
||||
"css",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"html",
|
||||
"svelte",
|
||||
"rust",
|
||||
"html-eex",
|
||||
"heex",
|
||||
},
|
||||
style = "full",
|
||||
}
|
||||
end
|
||||
if type(opts.tailwind) == "table" and opts.tailwind.enabled then
|
||||
-- reset hl groups when colorscheme changes
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue