From 37db36e1de4bb96377455fc9b8b9e018748e4c7a Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Tue, 27 Feb 2024 14:47:36 +0100 Subject: [PATCH] From new kickstart.nvim add mini.surround (less aggressive than nvim-surround) and todo-comments --- lua/lazy-configure.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/lua/lazy-configure.lua b/lua/lazy-configure.lua index 39aeded..6fbe257 100644 --- a/lua/lazy-configure.lua +++ b/lua/lazy-configure.lua @@ -196,6 +196,35 @@ require('lazy').setup({ build = ':TSUpdate', }, + -- NOTE: New additions to kickstart.nvim + -- The following has been added in https://github.com/nvim-lua/kickstart.nvim/blob/af4fd2355f211d4d19ec08ea6d57cbea483e2ee7/init.lua + + -- Highlight todo, notes, etc in comments + { 'folke/todo-comments.nvim', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, + + { -- Collection of various small independent plugins/modules + 'echasnovski/mini.nvim', + config = function() + -- Better Around/Inside textobjects + -- + -- Examples: + -- - va) - [V]isually select [A]round [)]parenthen + -- - yinq - [Y]ank [I]nside [N]ext [']quote + -- - 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() + + -- ... and there is more! + -- Check out: https://github.com/echasnovski/mini.nvim + end, + }, + -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- These are some example plugins that I've included in the kickstart repository. -- Uncomment any of the lines below to enable them.