editor.suda
Read or write files with sudo (:SudaRead, :SudaWrite)
Enable
Turn it on with :RafiExtras (Spacemx), or add it to extras in your rafi.json:
json
{ "extras": ["editor.suda"] }Plugins
Source
lua/rafi/extras/editor/suda.lua
-- Read or write files with sudo (:SudaRead, :SudaWrite)
local pack = require('rafi.pack')
pack.later(function()
vim.pack.add({ 'https://github.com/lambdalisue/vim-suda' })
end)