init.lua (1694B)
1 return { 2 'numToStr/Comment.nvim', -- "gc" to comment visual regions/lines 3 4 { 5 "folke/which-key.nvim", 6 config = function() 7 vim.o.timeout = true 8 vim.o.timeoutlen = 300 9 require("which-key").setup() 10 end 11 }, 12 13 14 { 15 'Eandrju/cellular-automaton.nvim', 16 config = function() 17 vim.keymap.set('n', 'q:', '<cmd>CellularAutomaton make_it_rain<CR>') 18 end 19 }, 20 21 { 22 "nvim-mini/mini.align", 23 opts = { 24 mappings = { 25 start_with_preview = 'ga', 26 }, 27 }, 28 }, 29 { 30 "nvim-mini/mini.ai", 31 opts = {}, 32 event = "VeryLazy", 33 }, 34 { 35 "nvim-mini/mini.surround", 36 config = function() 37 require('mini.surround').setup({ 38 mappings = { 39 add = 'ys', 40 delete = 'ds', 41 } 42 }) 43 44 -- Remap adding surrounding to Visual mode selection 45 vim.keymap.del('x', 'ys') 46 vim.keymap.set('x', 'S', [[:<C-u>lua MiniSurround.add('visual')<CR>]], { silent = true }) 47 48 -- Make special mapping for "add surrounding for line" 49 vim.keymap.set('n', 'yss', 'ys_', { remap = true }) 50 end, 51 event = "VeryLazy", 52 }, 53 { 54 "m00qek/baleia.nvim", 55 version = "*", 56 config = function() 57 vim.g.baleia = require("baleia").setup({}) 58 59 -- Command to colorize the current buffer 60 vim.api.nvim_create_user_command("BaleiaColorize", function() 61 vim.g.baleia.once(vim.api.nvim_get_current_buf()) 62 end, { bang = true }) 63 64 -- Command to show logs 65 vim.api.nvim_create_user_command("BaleiaLogs", vim.g.baleia.logger.show, { bang = true }) 66 end, 67 }, 68 { 69 'max397574/colortils.nvim', 70 event = "VeryLazy", 71 opts = { 72 register = "0", 73 }, 74 }, 75 }