1
0
Fork
You've already forked suedit.nvim
0
A neovim plugin to seamlessly edit files that require superuser access
  • Lua 100%
2025年08月14日 12:27:35 +05:30
lua Fix issue with creating non-existent files in root 2024年08月17日 17:55:51 +05:30
.gitignore Initial commit 2024年06月20日 15:01:09 +05:30
LICENSE Initial commit 2024年06月20日 15:01:09 +05:30
README.md Update for codeberg 2025年08月14日 12:27:35 +05:30

SuEdit

This is a neovim plugin that makes it easy to edit privileged files with your usual editor commands instead of using special tools like sudoedit.

If you don't have write access to the file open in the current buffer, the plugin will automatically ask for elevated privileges and copy the changes to the original file.

Installation

Using lazy.nvim

{
 "https://codeberg.org/grafcube/suedit.nvim",
 dependencies = "akinsho/toggleterm.nvim",
},

Configuration

You can change the command used to ask for permissions. By default, sudo is used.

{
 "https://codeberg.org/grafcube/suedit.nvim",
 dependencies = "akinsho/toggleterm.nvim",
 opts = { cmd = "sudo" } -- default
 -- eg: { cmd = "doas" }
 -- eg: { cmd = "run0" }
},