添加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",
}

View file

@ -84,6 +84,10 @@
"rev": "c0603ca8f31299c83deaa9a24a63d67116db25cd",
"src": "https://github.com/alexpasmantier/tv.nvim"
},
"vim-suda": {
"rev": "c492741b4679b3cdd4d9e34138209784e061d916",
"src": "https://github.com/lambdalisue/vim-suda"
},
"which-key.nvim": {
"rev": "3aab2147e74890957785941f0c1ad87d0a44c15a",
"src": "https://github.com/folke/which-key.nvim"