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