From 47c9daea251a5295cc1612df91546b758a1b738e Mon Sep 17 00:00:00 2001 From: Aotrix Date: Mon, 24 Feb 2025 16:02:43 +0100 Subject: added mini.nvim for useful commands - adding quotes quickly... --- lua/aotrix/plugins/mini.lua | 19 +++++++++++++++++++ lua/aotrix/plugins/todo_comments.lua | 6 ++++++ 2 files changed, 25 insertions(+) create mode 100644 lua/aotrix/plugins/mini.lua create mode 100644 lua/aotrix/plugins/todo_comments.lua diff --git a/lua/aotrix/plugins/mini.lua b/lua/aotrix/plugins/mini.lua new file mode 100644 index 0000000..3e6562a --- /dev/null +++ b/lua/aotrix/plugins/mini.lua @@ -0,0 +1,19 @@ +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 +} diff --git a/lua/aotrix/plugins/todo_comments.lua b/lua/aotrix/plugins/todo_comments.lua new file mode 100644 index 0000000..48e942d --- /dev/null +++ b/lua/aotrix/plugins/todo_comments.lua @@ -0,0 +1,6 @@ +return { + 'folke/todo-comments.nvim', + event = 'VimEnter', + dependencies = {'nvim-lua/plenary.nvim'}, + opts = {signs = false} +} -- cgit v1.2.3