The file manipulation commands for vim-dirvish that you've always wanted
- Supports most file operations: create, rename, copy, move, delete, move to trash
- Cross-platform support thanks to luv
- Easy to memorize mappings
- Integration with LSP for renaming files,...
- Netrw-styled
:Open
and:Launch
commands (only in Nvim 0.10.1+) - Sudo mode for operations that require elevated permissions
- Nvim 0.8 or later
- dirvish.vim
sh
command forsudo
mode (:echo executable('sh')
should return 1)- Optional : In case you want to move files to trash instead of deleting permanently (opts.operations.remove = "trash"):
- Python3 provider for Neovim.
:echo has('python3')
should return 1. See:h provider-python
for more information on how to set it up. - send2trash
- Python3 provider for Neovim.
You can install this plugin using any plugin manager that supports GitHub repositories. Below are some examples:
Note: This plugin is lazy-loaded by default, so you don't need to worry about it slowing down your startup time.
{
'brianhuster/dirvish-do.nvim',
--- No need to specify dependencies as lazy.nvim supports loading dependencies information from pkg.json
}
MiniDeps.add({
source = 'brianhuster/dirvish-do.nvim',
depends = {
'justinmk/vim-dirvish',
},
})
Plug 'justinmk/vim-dirvish'
Plug 'brianhuster/dirvish-do.nvim'
See :h dirvish-do
for more information on how to configure and use the plugin.
This is a fork of vim-dirvish-dovish by Rogin Farrer that has been rewritten in Lua. It uses :h luv
and :h builtin
Vim commands and functions instead of shell commands for better cross-platform support out of the box.
Thanks to Anton Kavalkou for the inspiration and the idea to integrate with LSP
Big shout out to Melandel for laying the foundation for this plugin!