Ranger plugin for neovim
lazy.nvim
{
"Kicamon/ranger.nvim",
config = function()
require('ranger').setup()
end
}
vim-plug
Plug "Kicamon/ranger.nvim"
lua require('ranger').setup()
use command Ranger
or shortcut keys
defualt config
require('ranger').setup({
win = {
width = 0.8,
height = 0.8,
position = 'cc',
},
open = {
['edit'] = '<leader>re',
['tabedit'] = nil,
['split'] = nil,
['vsplit'] = nil,
}
})
+--------------+-------------------+---------------+
| | | |
| tl | | tr |
| | | |
+--------------+ +---------------+
| |
| +-------------+ |
| | | |
| | cc | |
| | | |
| +-------------+ |
| |
+--------------+ +---------------+
| | | |
| bl | | br |
| | | |
+--------------+-------------------+---------------+
open | description |
---|---|
edit |
open files in buffers |
tabedit |
open files in tabs |
split |
open files in horizontal split |
vsplit |
open files in vertical split |