添加sudo保存文件的插件

This commit is contained in:
caprain 2026-04-13 00:38:42 +08:00
parent a7c0a23077
commit bbc8152ed9
3 changed files with 10 additions and 0 deletions

View file

@ -273,6 +273,10 @@ mapkey("n", "<leader>cn", "gcc", { remap = true })
mapkey("x", "<leader>cn", "gc", { remap = true })
mapkey("n", "<leader>cu", "gcc", { remap = true })
mapkey("x", "<leader>cu", "gc", { remap = true })
mapkey("n", "<c-_>", "gcc", { remap = true })
mapkey("x", "<c-_>", "gc", { remap = true })
mapkey("n", "<c-/>", "gcc", { remap = true })
mapkey("x", "<c-/>", "gc", { remap = true })
-- ===
-- === 运行代码(该功能已经迁移到plugins/coderunner.lua)

View file

@ -38,6 +38,8 @@ local specs = {
'https://github.com/akinsho/bufferline.nvim',
-- yazi.lua 文件管理器
'https://github.com/mikavilpas/yazi.nvim',
-- sudo权限保存文件
"https://github.com/lambdalisue/vim-suda",
-- 查看可用键位
"https://github.com/folke/which-key.nvim",
}