mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 17:28:57 +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
|
@ -15,16 +15,18 @@ M.plugin = {
|
||||||
tailwind = {
|
tailwind = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
ft = {
|
ft = {
|
||||||
"typescriptreact",
|
"astro",
|
||||||
"javascriptreact",
|
|
||||||
"css",
|
"css",
|
||||||
"javascript",
|
|
||||||
"typescript",
|
|
||||||
"html",
|
|
||||||
"svelte",
|
|
||||||
"rust",
|
|
||||||
"html-eex",
|
|
||||||
"heex",
|
"heex",
|
||||||
|
"html",
|
||||||
|
"html-eex",
|
||||||
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
|
"rust",
|
||||||
|
"svelte",
|
||||||
|
"typescript",
|
||||||
|
"typescriptreact",
|
||||||
|
"vue",
|
||||||
},
|
},
|
||||||
-- full: the whole css class will be highlighted
|
-- full: the whole css class will be highlighted
|
||||||
-- compact: only the color will be highlighted
|
-- compact: only the color will be highlighted
|
||||||
|
@ -48,25 +50,6 @@ M.plugin = {
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
config = function(_, opts)
|
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
|
if type(opts.tailwind) == "table" and opts.tailwind.enabled then
|
||||||
-- reset hl groups when colorscheme changes
|
-- reset hl groups when colorscheme changes
|
||||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue