From 0f608510b501f3bbf09103ca04a8bca0a6858ef6 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 7 May 2026 21:06:31 +0545 Subject: [PATCH] feat(plugin):streamline UI plugins and add markdown preview toggle --- plugin/ui.lua | 19 ++----------------- plugin/whichkey.lua | 1 - 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/plugin/ui.lua b/plugin/ui.lua index d5e7ea8..877624d 100644 --- a/plugin/ui.lua +++ b/plugin/ui.lua @@ -1,12 +1,12 @@ add({ - 'm4xshen/smartcolumn.nvim', -- smart column when needed 'karb94/neoscroll.nvim', -- smooth scrolling 'OXY2DEV/markview.nvim', -- rendering for html and markdown - { 'serhez/bento.nvim' }, -- buffer manager + 'serhez/bento.nvim', -- buffer manager 'akinsho/toggleterm.nvim', --float terminal 'max397574/better-escape.nvim', -- better escape 'zbirenbaum/neodim', -- dimming the highlights of unused functions, variables, parameters, and more }) +require('bento').setup({}) -- lazy load UI enhancement plugins vim.api.nvim_create_autocmd({ 'BufReadPost', 'BufNewFile' }, { @@ -47,21 +47,6 @@ vim.api.nvim_create_autocmd('FileType', { }) vim.keymap.set('n', 'cv', 'Markview toggle', { desc = 'toggle markdown preview' }) --- smart column only when needed -require('smartcolumn').setup({ - colorcolumn = '120', - disabled_filetypes = { - 'help', - 'text', - 'markdown', - 'oil', - 'snacks_dashboard', - 'dashboard', - }, -}) - -require('bento').setup({}) - require('toggleterm').setup({ size = 10, open_mapping = [[]], diff --git a/plugin/whichkey.lua b/plugin/whichkey.lua index 46a7e49..e54c914 100644 --- a/plugin/whichkey.lua +++ b/plugin/whichkey.lua @@ -153,7 +153,6 @@ local normal_mappings = { { "p", group = " Packages" }, { "pm", ":Mason", desc = "Mason" }, { "pu", ":lua vim.pack.update()", desc = "Update Plugins" }, - { "px", ":lua require('pack_helper').clean()", desc = "Clean Unused Plugins" }, { "pt", ':lua require("snacks").profiler.toggle()', desc = "Profiler Toggle" }, { "q", group = " Quit" },