feat: add sudo write

This commit is contained in:
2026-06-27 14:28:18 +08:00
parent 8dcd6e3ac9
commit b08868cf16
2 changed files with 25 additions and 0 deletions
+4
View File
@@ -1,3 +1,7 @@
vim.api.nvim_create_user_command("W", function()
require("utils").sudo_write()
end, { desc = "Write file with sudo (tee)" })
-- Turn off paste mode when leaving insert
vim.api.nvim_create_autocmd("InsertLeave", {
pattern = "*",