1+ -- VSCode Neovim plugin management
2+
3+ -- [[ Install `lazy.nvim` plugin manager ]]
4+ -- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
5+ local lazypath = vim .fn .stdpath ' data' .. ' /lazy/lazy.nvim'
6+ if not vim .uv .fs_stat (lazypath ) then
7+ local lazyrepo = ' https://github.com/folke/lazy.nvim.git'
8+ local out = vim .fn .system { ' git' , ' clone' , ' --filter=blob:none' , ' --branch=stable' , lazyrepo , lazypath }
9+ if vim .v .shell_error ~= 0 then
10+ error (' Error cloning lazy.nvim:\n ' .. out )
11+ end
12+ end --- @diagnostic disable-next-line : undefined-field
13+ vim .opt .rtp :prepend (lazypath )
14+
15+
16+ -- Lazy
17+ require (' lazy' ).setup ({
18+ { -- Collection of various small independent plugins/modules
19+ ' echasnovski/mini.nvim' ,
20+ config = function ()
21+ -- Better Around/Inside textobjects
22+ --
23+ -- Examples:
24+ -- - va) - [V]isually select [A]round [)]paren
25+ -- - yinq - [Y]an [I]nside [N]ext [Q]uote
26+ -- - ci' - [C]hange [I]nside [']quote
27+ require (' mini.ai' ).setup { n_lines = 500 }
28+
29+ -- Add/delete/replace surroundings (bracets, quotes, etc.)
30+ --
31+ -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
32+ -- - sd' - [S]urround [D]elete [']quotes
33+ -- - sr)' - [S]urround [R]eplace [)] [']
34+ require (' mini.surround' ).setup ()
35+
36+ -- For more Mini.nvim stuff:
37+ -- Check out: https://github.com/echasnovski/mini.nvim
38+ end ,
39+ },
40+ })
0 commit comments