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 —
This commit is contained in:
6 files changed
+259
-234
No files matched your search
@@ -1,63 +1,4 @@
|
||||
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,
|
||||
},
|
||||
|
||||
-- Todo Comments
|
||||
{
|
||||
@@ -162,70 +103,6 @@ return {
|
||||
},
|
||||
},
|
||||
|
||||
-- Better folding
|
||||
{
|
||||
'kevinhwang91/nvim-ufo',
|
||||
dependencies = 'kevinhwang91/promise-async',
|
||||
event = 'BufReadPost',
|
||||
keys = {
|
||||
{
|
||||
'zR',
|
||||
function()
|
||||
require('ufo').openAllFolds()
|
||||
end,
|
||||
},
|
||||
{
|
||||
'zM',
|
||||
function()
|
||||
require('ufo').closeAllFolds()
|
||||
end,
|
||||
},
|
||||
{
|
||||
'zr',
|
||||
function()
|
||||
require('ufo').openFoldsExceptKinds()
|
||||
end,
|
||||
},
|
||||
{
|
||||
'zm',
|
||||
function()
|
||||
require('ufo').closeFoldsWith()
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
vim.o.foldcolumn = '1'
|
||||
vim.o.foldlevel = 99
|
||||
vim.o.foldlevelstart = 99
|
||||
vim.o.foldenable = true
|
||||
|
||||
require('ufo').setup({
|
||||
provider_selector = function()
|
||||
return { 'treesitter', 'indent' }
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
-- rendering for html and markdown
|
||||
{
|
||||
'OXY2DEV/markview.nvim',
|
||||
lazy = false,
|
||||
-- to load before treesitter
|
||||
priority = 45,
|
||||
config = function()
|
||||
require('markview').setup({
|
||||
preview = {
|
||||
icon_provider = 'mini',
|
||||
enable = false,
|
||||
},
|
||||
})
|
||||
end,
|
||||
keys = {
|
||||
{ '<leader>cv', '<Cmd>Markview toggle<CR>', desc = 'Toggle markdown preview', mode = 'n' },
|
||||
},
|
||||
},
|
||||
|
||||
-- markdown preview
|
||||
{
|
||||
'iamcco/markdown-preview.nvim',
|
||||
|
||||
Reference in new issue
Block a user