Streamline plugin configuration by enabling the project explorer in Snacks and removing unused plugins and configurations. - New Features - Enabled `explorer` and `projects` in Snacks with explicit directories (`~/Projects`, `~/Projects/other`, `~/.config/Modus`). - Added `dev` layout mapping for project-specific browsing. - Enhancements - Removed unused UI plugins (`neoscroll.nvim`, `neodim`, `better-escape.nvim`) and their autocmds. - Optimized lazy loading of Snacks components for faster startup. - Bug Fixes - Fixed misconfiguration of project directories (`~/Project` corrected to `~/Projects`). - Cleaned up removed plugin setups that could cause runtime errors.
49 lines
1.1 KiB
Lua
49 lines
1.1 KiB
Lua
add({
|
|
'OXY2DEV/markview.nvim', -- rendering for html and markdown
|
|
'serhez/bento.nvim', -- buffer manager
|
|
'akinsho/toggleterm.nvim', --float terminal
|
|
})
|
|
require('bento').setup({})
|
|
|
|
|
|
|
|
-- lazy load markdown preview
|
|
vim.api.nvim_create_autocmd('FileType', {
|
|
pattern = 'markdown',
|
|
callback = function()
|
|
require('markview').setup({
|
|
preview = {
|
|
icon_provider = 'mini',
|
|
enable = false,
|
|
},
|
|
})
|
|
end,
|
|
})
|
|
vim.keymap.set('n', '<leader>cv', '<cmd>Markview toggle<cr>', { desc = 'toggle markdown preview' })
|
|
|
|
require('toggleterm').setup({
|
|
size = 10,
|
|
open_mapping = [[<c-\>]],
|
|
hide_numbers = true,
|
|
shade_filetypes = {},
|
|
shade_terminals = true,
|
|
shading_factor = '2',
|
|
start_in_insert = true,
|
|
insert_mappings = true,
|
|
terminal_mappings = true,
|
|
persist_size = true,
|
|
direction = 'float',
|
|
close_on_exit = true,
|
|
shell = vim.o.shell,
|
|
float_opts = {
|
|
border = 'curved',
|
|
winblend = 0,
|
|
highlights = {
|
|
border = 'Normal',
|
|
background = 'Normal',
|
|
},
|
|
},
|
|
})
|
|
|
|
|