mirror of
https://github.com/cap153/nvim.git
synced 2026-05-01 19:05:44 +08:00
添加对字符相关插件
This commit is contained in:
parent
bbc8152ed9
commit
51ee1aebf5
18 changed files with 200 additions and 162 deletions
38
lua/pack/configs/mini.lua
Normal file
38
lua/pack/configs/mini.lua
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
-- === mini ===
|
||||
local P = {
|
||||
name = "mini.nvim", -- 仓库名
|
||||
}
|
||||
|
||||
-- 懒加载触发器
|
||||
vim.api.nvim_create_autocmd({
|
||||
"UIEnter", -- vim.schedule(function()
|
||||
}, {
|
||||
callback = function()
|
||||
vim.schedule(function()
|
||||
PackUtils.load(P, function()
|
||||
require('mini.surround').setup {
|
||||
mappings = {
|
||||
add = 's', -- Add surrounding
|
||||
delete = 'sd', -- Delete surrounding
|
||||
find = 'sf', -- Find surrounding (to the right)
|
||||
find_left = 'sF', -- Find surrounding (to the left)
|
||||
highlight = 'sh', -- Highlight surrounding
|
||||
replace = 'cs', -- Replace surrounding/change sround
|
||||
update_n_lines = 'sn', -- Update `n_lines`
|
||||
},
|
||||
}
|
||||
end)
|
||||
end)
|
||||
end
|
||||
})
|
||||
|
||||
-- 懒加载触发器
|
||||
-- vim.api.nvim_create_autocmd({
|
||||
-- "InsertEnter", "CmdlineEnter", -- 补全/命令行
|
||||
-- }, {
|
||||
-- callback = function()
|
||||
-- PackUtils.load(P, function()
|
||||
-- require('mini.pairs').setup {}
|
||||
-- end)
|
||||
-- end
|
||||
-- })
|
||||
Loading…
Add table
Add a link
Reference in a new issue