Files
keycodex/lua/plugins/git.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

62 lines
1.8 KiB
Lua

return {
-- gitignore generator
{
'wintermute-cell/gitignore.nvim',
cmd = { 'Gitignore' },
opts = {},
},
-- git signs
{
'lewis6991/gitsigns.nvim',
events = { 'BufReadPost', 'BufNewFile' },
opts = {
signcolumn = true,
current_line_blame = true,
attach_to_untracked = false,
current_line_blame_formatter = '<author>, <author_time:%R> - <summary>',
watch_gitdir = {
follow_files = true,
},
current_line_blame_opts = {
virt_text = true,
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
delay = 1000,
ignore_whitespace = false,
virt_text_priority = 100,
use_focus = true,
},
signs = {
add = { text = ' ' },
change = { text = '󱗜 ' },
delete = { text = '󰍵 ' },
topdelete = { text = '󱥨 ' },
changedelete = { text = '󰾟 ' },
untracked = { text = '󰰧 ' },
},
},
},
-- lazygit integration
{
'kdheepak/lazygit.nvim',
lazy = true,
enabled = true,
cmd = {
'LazyGit',
'LazyGitConfig',
'LazyGitCurrentFile',
'LazyGitFilter',
'LazyGitFilterCurrentFile',
},
keys = {
{ '<leader>lg', '<cmd>LazyGit<cr>', desc = 'LazyGit' },
},
config = function()
vim.g.lazygit_floating_window_winblend = 0
vim.g.lazygit_floating_window_scaling_factor = 0.9
vim.g.lazygit_floating_window_border_chars = { '╭', '─', '╮', '│', '╯', '─', '╰', '│' }
end,
},
}