Vim suda read/write with sudo

This commit is contained in:
Curt Spark 2024-11-30 14:07:47 +00:00
parent 76c91a727c
commit fc44eaa01f
2 changed files with 4 additions and 0 deletions

View File

@ -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

View 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" }
}