feat nvim: add sudo
This commit is contained in:
parent
b8c2e2d874
commit
d93ab2d409
@ -0,0 +1,11 @@
|
|||||||
|
return {
|
||||||
|
"lambdalisue/suda.vim",
|
||||||
|
lazy = true,
|
||||||
|
cmd = { "SudaRead", "SudaWrite" },
|
||||||
|
config = function()
|
||||||
|
vim.g.suda_smart_edit = 1
|
||||||
|
end,
|
||||||
|
keys = {
|
||||||
|
{ "<leader>e", "<cmd>SudaRead<cr>", desc = "Edit with sudo" },
|
||||||
|
},
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user