Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grafcube/suedit.nvim
A neovim plugin to seamlessly edit files that require superuser access
https://github.com/grafcube/suedit.nvim
doas doasedit lua neovim nvim plugin run0 su sudo sudoedit
Last synced: 21 days ago
JSON representation
A neovim plugin to seamlessly edit files that require superuser access
- Host: GitHub
- URL: https://github.com/grafcube/suedit.nvim
- Owner: Grafcube
- License: mpl-2.0
- Created: 2024-06-20T09:30:26.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-17T12:40:15.000Z (3 months ago)
- Last Synced: 2024-10-13T19:39:41.894Z (about 1 month ago)
- Topics: doas, doasedit, lua, neovim, nvim, plugin, run0, su, sudo, sudoedit
- Language: Lua
- Homepage:
- Size: 11.7 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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://github.com/folke/lazy.nvim)
```lua
{
"Grafcube/suedit.nvim",
dependencies = "akinsho/toggleterm.nvim",
},
```## Configuration
You can change the command used to ask for permissions. By default, `sudo` is
used.```lua
{
"Grafcube/suedit.nvim",
dependencies = "akinsho/toggleterm.nvim",
opts = { cmd = "sudo" } -- default
-- eg: { cmd = "doas" }
-- eg: { cmd = "run0" }
},
```