An open API service indexing awesome lists of open source software.

https://github.com/masajinobe-ef/suda.nvim

Seamless sudo file editing with permissions preservation
https://github.com/masajinobe-ef/suda.nvim

lazy lua neovim neovim-plugin nvim sudo vim

Last synced: 9 months ago
JSON representation

Seamless sudo file editing with permissions preservation

Awesome Lists containing this project

README

          

# 🚀 suda.nvim

Neovim plugin for seamless sudo file editing with permissions preservation.
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

## Features

- 🔄 Automatic sudo detection for protected files
- 📝 Edit files with `sudo://` protocol
- 🔒 Preserves original permissions/ownership
- 💾 Save with regular `:w` command
- 🛡️ Atomic writes with temp file safety
- 🖥️ Supports Linux/macOS/\*nix systems

## Installation

Using lazy.nvim:

```lua
{
'masajinobe-ef/suda.nvim',
config = function()
require('suda').setup {}
end,
}
```