Neovim Config
1return { -- Collection of various small independent plugins/modules
2 'echasnovski/mini.nvim',
3 config = function()
4 -- Better Around/Inside textobjects
5 --
6 -- Examples:
7 -- - va) - [V]isually select [A]round [)]paren
8 -- - yinq - [Y]ank [I]nside [N]ext [Q]uote
9 -- - ci' - [C]hange [I]nside [']quote
10 require('mini.ai').setup { n_lines = 500 }
11
12 -- Add/delete/replace surroundings (brackets, quotes, etc.)
13 --
14 -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
15 -- - sd' - [S]urround [D]elete [']quotes
16 -- - sr)' - [S]urround [R]eplace [)] [']
17 require('mini.surround').setup()
18
19 -- Simple and easy statusline.
20 -- You could remove this setup call if you don't like it,
21 -- and try some other statusline plugin
22 local statusline = require 'mini.statusline'
23 -- set use_icons to true if you have a Nerd Font
24 statusline.setup { use_icons = vim.g.have_nerd_font }
25
26 -- You can configure sections in the statusline by overriding their
27 -- default behavior. For example, here we set the section for
28 -- cursor location to LINE:COLUMN
29 ---@diagnostic disable-next-line: duplicate-set-field
30 statusline.section_location = function()
31 return '%2l:%-2v'
32 end
33
34 -- ... and there is more!
35 -- Check out: https://github.com/echasnovski/mini.nvim
36 end,
37}