feat(plugin):streamline UI plugins and add markdown preview toggle

This commit is contained in:
sankalp committed 2026-05-07 21:06:31 +05:45
1 parent 9434ff993b
commit 0f608510b5
2 files changed
+2 -18

No files matched your search

+2 -17
View File
@@ -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', '<leader>cv', '<cmd>Markview toggle<cr>', { 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 = [[<c-\>]],