return { { "obsidian.nvim", for_cats = "misc", event = { "BufReadPre " .. vim.fn.expand("~") .. "/Notes/**/*.md", "BufNewFile " .. vim.fn.expand("~") .. "/Notes/**/*.md", }, after = function() require("obsidian").setup({ legacy_commands = false, workspaces = { { name = "personal", path = "~/Notes", }, }, }) end, }, { "typst-preview.nvim", ft = "typst", for_cats = "misc", after = function() require("typst-preview").setup({ debug = false, open_cmd = nil, port = nil, invert_colors = "never", follow_cursor = true, dependencies_bin = { tinymist = "tinymist", websocat = "websocat", }, extra_args = nil, get_root = function(path_of_main_file) local root = os.getenv("TYPST_ROOT") if root then return root end return vim.fn.fnamemodify(path_of_main_file, ":p:h") end, get_main_file = function(path_of_buffer) return path_of_buffer end, }) end, }, -- { -- "mini.indentscope", -- for_cats = "ui", -- event = { "BufReadPre", "BufNewFile" }, -- after = function() -- require("mini.indentscope").setup({ symbol = "│" }) -- end, -- }, { "hlchunk.nvim", for_cats = "ui", event = { "BufReadPre", "BufNewFile" }, after = function() local ignored_filetypes = { gitcommit = true, oil = true, Neogitstatus = true, TelescopePrompt = true, NvimTree = true, help = true, nix = true, } require("hlchunk").setup({ chunk = { enable = true, priority = 15, style = { vim.api.nvim_get_hl(0, { name = "IndentBlanklineIndent1" }), vim.api.nvim_get_hl(0, { name = "DiagnosticError" }), }, use_treesitter = true, chars = { horizontal_line = "─", vertical_line = "│", left_top = "╭", left_bottom = "╰", right_arrow = "─", }, textobject = "", exclude_filetypes = ignored_filetypes, max_file_size = 1024 * 1024, error_sign = true, -- animation related duration = 200, delay = 300, }, indent = { enable = true, priority = 10, style = { vim.api.nvim_get_hl(0, { name = "Whitespace" }) }, use_treesitter = true, exclude_filetypes = ignored_filetypes, chars = { "│" }, ahead_lines = 5, delay = 100, }, }) end, }, }