summaryrefslogtreecommitdiff
path: root/lua/bee/plugins/ui.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/bee/plugins/ui.lua')
-rw-r--r--lua/bee/plugins/ui.lua51
1 files changed, 51 insertions, 0 deletions
diff --git a/lua/bee/plugins/ui.lua b/lua/bee/plugins/ui.lua
index 8ce2a3c..2a5a4fc 100644
--- a/lua/bee/plugins/ui.lua
+++ b/lua/bee/plugins/ui.lua
@@ -1,6 +1,7 @@
return {
{
"lualine.nvim",
+ event = "DeferredUIEnter",
auto_enable = true,
after = function(_)
require("lualine").setup({
@@ -66,4 +67,54 @@ return {
})
end,
},
+ {
+ "hlchunk.nvim",
+ auto_enable = false,
+ event = "DeferredUIEnter",
+ 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,
+ -- 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 = false,
+ straight = true,
+ use_treesitter = true,
+ -- animation related
+ duration = 0,
+ delay = 200,
+ },
+ 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,
+ },
}