Files
keycodex/lua/plugins/util.lua
T
sankalp f93e579294 chore(lua/plugins): cleanup and reorganize plugin configurations, dropping deprecated plugins and introducing new folding, smoothing, and screenshot tools
New Features:
- Added ufo.nvim for advanced folding with Treesitter and indent providers
- Added neoscroll.nvim for smooth scrolling
- Added smartcolumn.nvim to enforce colorcolumn only when needed
- Added codesnap.nvim for markdown screenshot generation
- Added Markview toggle shortcut for markdown preview

Enhancements:
- Configured folding options (foldcolumn, foldlevel, provider selector)
- Added keybindings for opening/closing all folds and toggling fold visibility
- Updated plugin loading conditions and lazy loading patterns

Bug Fixes: — No bug fixes included in this change —
2026-02-20 23:55:19 +05:45

132 lines
4.0 KiB
Lua

return {
-- better escape
{
'max397574/better-escape.nvim',
config = function()
require('better_escape').setup({
mappings = {
-- i for insert, other modes are the first letter too
i = {
-- map kj to exit insert mode
k = {
j = '<Esc>',
},
-- map jk and jj to exit insert mode
j = {
k = '<Esc>',
j = '<Esc>',
},
-- disable jj
j = {
j = false,
},
},
},
})
end,
},
-- Navigator
-- {
-- 'numToStr/Navigator.nvim',
-- event = 'VeryLazy',
-- config = function()
-- require('Navigator').setup({
-- auto_save = 'current',
-- disable_on_zoom = false,
-- mux = 'auto',
-- })
-- end,
-- },
-- float terminal
{
'akinsho/toggleterm.nvim',
cmd = { 'ToggleTerm' },
version = '*',
config = function()
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', -- 'vertical' | 'horizontal' | 'tab' | 'float'
close_on_exit = true,
shell = vim.o.shell,
float_opts = {
border = 'curved', -- 'single', 'double', 'shadow', etc.
winblend = 0, -- Set to 0 for full transparency
highlights = {
border = 'Normal',
background = 'Normal',
},
},
})
end,
},
-- discord presence
-- {
-- "vyfor/cord.nvim",
-- event = "VeryLazy",
-- },
-- uv
{
'benomahony/uv.nvim',
ft = 'python',
event = 'BufReadPre',
opts = {
picker_integration = true,
keymaps = {
prefix = '<leader>u', -- Main prefix for uv commands
commands = true, -- Show uv commands menu (<leader>x)
run_file = true, -- Run current file (<leader>xr)
run_selection = true, -- Run selected code (<leader>xs)
run_function = true, -- Run function (<leader>xf)
venv = true, -- Environment management (<leader>xe)
init = true, -- Initialize uv project (<leader>xi)
add = true, -- Add a package (<leader>xa)
remove = true, -- Remove a package (<leader>xd)
sync = true, -- Sync packages (<leader>xc)
sync_all = true, -- Sync all packages, extras and groups (<leader>xC)
},
},
},
-- wakatime
{ 'wakatime/vim-wakatime', event = 'VimEnter', lazy = false },
-- workflow
{
'm4xshen/hardtime.nvim',
lazy = false,
opts = {},
},
-- buffer manager
{
'serhez/bento.nvim',
opts = {},
-- config = function()
-- require('bento').setup({
-- ordering_metric = 'edit',
-- ui = {
-- mode = 'floating',
-- floating = {
-- position = 'middle-right',
-- minimal_menu = 'full',
-- },
-- },
-- })
-- end,
},
}