This commit is contained in:
2025-08-13 21:46:48 +02:00
commit c3e2e6509b
818 changed files with 54187 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
return {
"malbertzard/inline-fold.nvim",
init = function()
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.html", "*.tsx", "*.jsx" },
callback = function(_)
if not require("inline-fold.module").isHidden then
vim.cmd("InlineFoldToggle")
end
end,
})
end,
ft = "html",
cmd = "InlineFoldToggle",
opts = {
defaultPlaceholder = "",
queries = {
html = {
{ pattern = 'class="([^"]*)"' },
{ pattern = 'href="(.-)"' },
{ pattern = 'src="(.-)"' },
},
},
},
keys = {
{ "<leader>uI", "<cmd>InlineFoldToggle<CR>", desc = "Toggle Inline Fold" },
},
}