diff options
| author | brustybee <bee@4d2.org> | 2026-03-16 15:24:25 +0530 |
|---|---|---|
| committer | brustybee <bee@4d2.org> | 2026-03-16 15:24:25 +0530 |
| commit | 809f0c8d6db2b9b256d71591feb8d05a9a668015 (patch) | |
| tree | 5f1ec1787657b56f98162cbd4719c7a7714a4587 /lua/plugins/ui.lua | |
| parent | 852e729850ffc9e0a05017135989e1aeb02f8b29 (diff) | |
add few plugins and change some options
Diffstat (limited to 'lua/plugins/ui.lua')
| -rw-r--r-- | lua/plugins/ui.lua | 70 |
1 files changed, 70 insertions, 0 deletions
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, + }, +} |
