diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-15 23:26:50 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-15 23:26:50 +0100 |
commit | 855f4e4f0f22b35641f13614e46b9ab7f6818188 (patch) | |
tree | 9a776e07429c16e1df68f4b04c125c46185eed16 /.config/nvim/lua/rnvimr | |
parent | 8577c3b7cba714551d3537f3337ee2490bd20106 (diff) |
Migration to lua
Diffstat (limited to '.config/nvim/lua/rnvimr')
-rw-r--r-- | .config/nvim/lua/rnvimr/init.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.config/nvim/lua/rnvimr/init.lua b/.config/nvim/lua/rnvimr/init.lua new file mode 100644 index 0000000..055326c --- /dev/null +++ b/.config/nvim/lua/rnvimr/init.lua @@ -0,0 +1,22 @@ +-- 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 <leader>r :RnvimrToggle<CR>') + +--[[ 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}] ]] |