Removed Sudo Hacks, cause they break with Password Sudo

This commit is contained in:
Luminiferous committed 2026-10-08 11:22:54 +02:00
1 parent 74edd07d68
commit 86cec7c992
1 file changed
-7
-7
View File
@@ -42,13 +42,6 @@ vim.g.netrw_silent = 1
]]
-- }}}
-- WriteSudo and ReadSudo hacks {{{
vim.api.nvim_create_user_command('WriteSudo', 'w !sudo tee %', {})
vim.api.nvim_create_user_command('ReadSudo', function(opts)
vim.cmd('r !sudo cat ' .. opts['args'])
end, { nargs = 1 })
-- }}}
-- Statusbar {{{
vim.opt.statusline = ' #%n %f %h%w%m%r %= %{&fileformat} %y %l:%c %p%% '
-- }}}