neovim conf part 8, now with snacks and mini
This commit is contained in:
parent
36c7c39213
commit
bbd1f9f7c1
13 changed files with 208 additions and 127 deletions
34
.config/nvim/lua/config/plugins/mini.lua
Normal file
34
.config/nvim/lua/config/plugins/mini.lua
Normal file
|
@ -0,0 +1,34 @@
|
|||
return {
|
||||
'echasnovski/mini.nvim',
|
||||
version = '*' ,
|
||||
config = function()
|
||||
require('mini.pairs').setup({})
|
||||
require('mini.ai').setup({
|
||||
mappings = {
|
||||
around = 'a',
|
||||
inside = 'h',
|
||||
|
||||
around_next = 'an',
|
||||
inside_next = 'hn',
|
||||
around_last = 'al',
|
||||
inside_last = 'hl',
|
||||
|
||||
goto_left = 'g[',
|
||||
goto_right = 'g]',
|
||||
},
|
||||
silent = true,
|
||||
})
|
||||
require('mini.surround').setup({
|
||||
silent = true,
|
||||
})
|
||||
require('mini.files').setup({
|
||||
mappings = {
|
||||
go_in = 'l',
|
||||
go_out = 'j',
|
||||
go_in_plus = 'L',
|
||||
go_out_plus = 'J',
|
||||
synchronize = '<C-s>'
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue