nvim: plugins: Drop dirbuf and use mini.files module

This commit is contained in:
Sanchayan Maity 2023-07-05 20:35:38 +05:30
parent ea588b0556
commit b24c03af09
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3
2 changed files with 18 additions and 1 deletions

View file

@ -3,6 +3,21 @@ local opts = { noremap=true, silent=true, unique=true }
-- Comment lines
require('mini.comment').setup()
-- File System
require('mini.files').setup({
mappings = {
close = 'q' ,
go_in = 'e' ,
go_in_plus = '<Right>',
go_out = 'n' ,
go_out_plus = '<Left>' ,
reset = '<BS>' ,
show_help = 'g?' ,
synchronize = '=' ,
trim_left = '' ,
trim_right = '' ,
}
})
-- Vertical jumps/movement
require('mini.jump2d').setup({
allowed_lines = {
@ -30,6 +45,9 @@ require('mini.surround').setup({})
require('mini.trailspace').setup({})
-- Key mappings for all mini modules we use
remap('n', '-', function()
return require('mini.files').open(vim.api.nvim_buf_get_name(0))
end, opts)
remap({ 'n', 'o', 'x' }, 'gS', function()
return require('mini.jump2d').start({
allowed_lines = {

View file

@ -15,7 +15,6 @@ require "paq" {
'tpope/vim-repeat' ,
'tpope/vim-sleuth' ,
'tpope/vim-dispatch' ,
'elihunter173/dirbuf.nvim' ,
'junegunn/vim-easy-align' ,
'nvim-lua/plenary.nvim' ,
'kosayoda/nvim-lightbulb' ,