From 809f0c8d6db2b9b256d71591feb8d05a9a668015 Mon Sep 17 00:00:00 2001 From: brustybee Date: Mon, 16 Mar 2026 15:24:25 +0530 Subject: add few plugins and change some options --- lua/plugins/ui.lua | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 lua/plugins/ui.lua (limited to 'lua/plugins/ui.lua') diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua new file mode 100644 index 0000000..c399416 --- /dev/null +++ b/lua/plugins/ui.lua @@ -0,0 +1,70 @@ +return { + -- { + -- "mini.indentscope", + -- for_cats = "ui", + -- event = { "BufReadPre", "BufNewFile" }, + -- after = function() + -- require("mini.indentscope").setup({ symbol = "│" }) + -- end, + -- }, + { + "mini.statusline", + for_cats = "ui", + event = { "DeferredUIEnter" }, + after = function() + require("mini.statusline").setup() + 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, + }, +} -- cgit v1.3.1