return { -- Todo Comments { 'folke/todo-comments.nvim', event = 'BufRead', opts = {}, }, -- Working with file permissions { 'lambdalisue/vim-suda', cmd = { 'SudaRead', 'SudaWrite' }, }, -- Undo History Visualizer { 'mbbill/undotree', cmd = { 'UndotreeToggle' }, keys = { { 'u', 'UndotreeToggle', desc = 'Undo Tree' } }, config = function() vim.g.undotree_WindowLayout = 2 vim.g.undotree_SetFocusWhenToggle = 1 vim.g.undotree_SplitWidth = 35 vim.g.undotree_DiffpanelHeight = 15 vim.g.undotree_DiffCommand = 'diff --unified=0' -- vim.g.undotree_DiffCommand = "git diff --no-index --unified=0 --patience" end, }, -- visual multi { 'mg979/vim-visual-multi', event = 'VeryLazy', init = function() vim.g.VM_maps = { ['Find Under'] = '', ['Find Subword Under'] = '', ['Select All'] = '', ['Add Cursor Down'] = '', ['Add Cursor Up'] = '', } end, }, -- dimming the highlights of unused functions, variables, parameters, and more { 'zbirenbaum/neodim', enabled = false, event = 'LspAttach', config = function() require('neodim').setup({ alpha = 0.5, blend_color = nil, hide = { underline = true, virtual_text = true, signs = true, }, regex = { '[uU]nused', '[nN]ever [rR]ead', '[nN]ot [rR]ead', }, priority = 128, disable = {}, }) end, }, -- file operations { 'chrisgrieser/nvim-genghis', keys = { { 'fn', function() require('genghis').createNewFile() end, desc = 'New File', }, { 'fd', function() require('genghis').duplicateFile() end, desc = 'Duplicate File', }, { 'fr', function() require('genghis').renameFile() end, desc = 'Rename File', }, { 'fx', function() require('genghis').chmodx() end, desc = 'Make Executable', }, }, }, -- markdown preview { 'iamcco/markdown-preview.nvim', build = 'cd app && yarn install', init = function() vim.g.mkdp_filetypes = { 'markdown' } end, ft = 'markdown', cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview' }, }, }