From c310df46424462cef4cb36d04d93b992d63f7330 Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Fri, 16 Jun 2023 01:58:47 +0530 Subject: [PATCH] chore: add indent and bufferline plugins --- lua/plugins/ui.lua | 74 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index 0dd441b..d1c5c91 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -5,5 +5,77 @@ return { "nvim-tree/nvim-web-devicons" }, opts = {}, - } + }, + + { + "akinsho/bufferline.nvim", + event = "VeryLazy", + key = { + { "bp", "BufferLineTogglePin", desc = "Toggle pin" }, + { "bP", "BufferLineGroupClose ungrouped", desc = "Delete non-pinned buffers" }, + }, + opts = { + options = { + offsets = { + { + filetype = "neo-tree" + } + } + } + } + }, + + { + "lukas-reineke/indent-blankline.nvim", + event = { "BufReadPost", "BufNewFile" }, + opts = { + -- char = "▏", + char = "│", + filetype_exclude = { + "help", + "alpha", + "dashboard", + "neo-tree", + "Trouble", + "lazy", + "mason", + "notify", + "toggleterm", + "lazyterm", + }, + show_trailing_blankline_indent = false, + show_current_context = false, + }, + }, + + -- active indent guide and indent text objects + { + "echasnovski/mini.indentscope", + version = false, -- wait till new 0.7.0 release to put it back on semver + event = { "BufReadPre", "BufNewFile" }, + opts = { + -- symbol = "▏", + symbol = "│", + options = { try_as_border = true }, + }, + init = function() + vim.api.nvim_create_autocmd("FileType", { + pattern = { + "help", + "alpha", + "dashboard", + "neo-tree", + "Trouble", + "lazy", + "mason", + "notify", + "toggleterm", + "lazyterm", + }, + callback = function() + vim.b.miniindentscope_disable = true + end, + }) + end, + }, }