Vim suda read/write with sudo
This commit is contained in:
parent
76c91a727c
commit
fc44eaa01f
3
init.lua
3
init.lua
|
|
@ -84,6 +84,9 @@ vim.api.nvim_create_autocmd({ 'BufEnter', 'BufNewFile' }, {
|
|||
command = 'set filetype=yaml.docker-compose',
|
||||
})
|
||||
|
||||
-- Vim Suda Setup (Read/Write files with sudo)
|
||||
vim.g.suda_smart_edit = 1
|
||||
|
||||
-- Spooky thing that will attempt to add any relative to current working directory node_modules binaries to PATH on startup
|
||||
node_modules_path_original = vim.env.PATH
|
||||
-- Refresh PATH on new file
|
||||
|
|
|
|||
|
|
@ -14,5 +14,6 @@
|
|||
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||
"vim-jsdoc": { "branch": "master", "commit": "6e5bc2a1f98a69e4902081c9f5969b228a7a5fd6" },
|
||||
"vim-suda": { "branch": "master", "commit": "b97fab52f9cdeabe2bbb5eb98d82356899f30829" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "9b365a6428a9633e3eeb34dbef1b791511c54f70" }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue