From 413acae7a067e5e7c4c66961cb84a5316264416d Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 14 Mar 2021 20:34:23 -0400 Subject: updates --- lua/nv-rnvimr/init.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/nv-rnvimr/init.lua (limited to 'lua/nv-rnvimr/init.lua') diff --git a/lua/nv-rnvimr/init.lua b/lua/nv-rnvimr/init.lua new file mode 100644 index 00000000..42688269 --- /dev/null +++ b/lua/nv-rnvimr/init.lua @@ -0,0 +1,24 @@ +-- Make Ranger replace netrw and be the file explorer +vim.g.rnvimr_ex_enable = 1 +vim.g.rnvimr_draw_border = 1 + +-- Make Ranger to be hidden after picking a file +vim.g.rnvimr_pick_enable = 1 + +-- Make Neovim to wipe the buffers corresponding to the files deleted by Ranger +vim.g.rnvimr_bw_enable = 1 + +vim.cmd('nmap r :RnvimrToggle') + +--[[ let g:rnvimr_ranger_cmd = 'ranger --cmd="set column_ratios 1,1"' + " \ --cmd="set draw_borders separators"' + +" let g:rnvimr_layout = { 'relative': 'editor', +" \ 'width': float2nr(round(0.6 * &columns)), +" \ 'height': float2nr(round(0.6 * &lines)), +" \ 'col': float2nr(round(0.2 * &columns)), +" \ 'row': float2nr(round(0.2 * &lines)), +" \ 'style': 'minimal' } + +let g:rnvimr_presets = [ + \ {'width': 0.800, 'height': 0.800}] ]] -- cgit v1.2.3