commit 49bf591560813b32942e1e9bb0cf73372ecf7ab7 from: Andre M. Bertachini date: Sun May 11 15:27:03 2025 UTC mini plugin lib commit - 7eb76a2632cd7045ebe39de1b00c2ffc2a8a11c5 commit + 49bf591560813b32942e1e9bb0cf73372ecf7ab7 blob - b7f305b6cd0ac13e033042e25676b0ff93a8485c blob + 4a03c7e0eb45db5731170fabde6516a1aaf7b55c --- init.lua +++ init.lua @@ -9,6 +9,7 @@ require('lazy').setup({ require('plugins/lspconfig'), require('plugins/conform'), require('plugins/treesitter'), + require('plugins/mini'), }) require('config.options') blob - 3716972f3623f4a5575db61146ccb124b711c09b blob + e0a7ebb0d5198525ff090109cb0c21c891ae627f --- lazy-lock.json +++ lazy-lock.json @@ -4,6 +4,7 @@ "mason-lspconfig.nvim": { "branch": "main", "commit": "d39a75bbce4b8aad5d627191ea915179c77c100f" }, "mason-tool-installer.nvim": { "branch": "main", "commit": "62f821a14e20f3f2ee358cd44d0b3d299a508e72" }, "mason.nvim": { "branch": "main", "commit": "7c7318e8bae7e3536ef6b9e86b9e38e74f2e125e" }, + "mini.nvim": { "branch": "main", "commit": "c665f30bb372c2ec8cfd61f7531098d3658b6634" }, "nvim-lspconfig": { "branch": "master", "commit": "61e5109c8cf24807e4ae29813a3a82b31821dd45" }, "nvim-treesitter": { "branch": "master", "commit": "28d480e0624b259095e56f353ec911f9f2a0f404" }, "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, blob - /dev/null blob + acc41e0cb6e1ab649267f989eda4be6f92306ed8 (mode 644) --- /dev/null +++ lua/plugins/mini.lua @@ -0,0 +1,21 @@ +return { + { -- Collection of various small independent plugins/modules + 'echasnovski/mini.nvim', + config = function() + -- Better Around/Inside textobjects + -- + -- Examples: + -- - va) - [V]isually select [A]round [)]paren + -- - yinq - [Y]ank [I]nside [N]ext [Q]uote + -- - ci' - [C]hange [I]nside [']quote + require('mini.ai').setup { n_lines = 500 } + + -- Add/delete/replace surroundings (brackets, quotes, etc.) + -- + -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren + -- - sd' - [S]urround [D]elete [']quotes + -- - sr)' - [S]urround [R]eplace [)] ['] + require('mini.surround').setup() + end, + }, +}