mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
quick sudoedit files with nvim
This commit is contained in:
parent
126a2076cc
commit
162f04a090
2 changed files with 14 additions and 5 deletions
|
@ -15,6 +15,8 @@ if vim.g.neovide then
|
|||
vim.g.neovide_cursor_vfx_mode = "pixiedust"
|
||||
end
|
||||
|
||||
vim.api.nvim_create_user_command('W', 'execute "silent! write !sudo tee % >/dev/null" <bar> edit', { nargs = 0})
|
||||
|
||||
vim.g.neovide_scale_factor = 1.0
|
||||
|
||||
-- bootstrap lazy and all plugins
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue