write keybindings for buffer management
This commit is contained in:
@@ -5,7 +5,10 @@ Map({ 'n', 'v' }, '<left>', '<nop>')
|
|||||||
Map({ 'n', 'v' }, '<right>', '<nop>')
|
Map({ 'n', 'v' }, '<right>', '<nop>')
|
||||||
|
|
||||||
-- tab management / navigation
|
-- tab management / navigation
|
||||||
Map('n', '<c-t>', '<cmd>enew<cr>', { desc = 'create a new tab' })
|
Map('n', '<c-t>', '<cmd>enew<cr>', { desc = 'create a new buffer' })
|
||||||
|
Map('n', '<tab>', '<cmd>bnext<cr>', { desc = 'move to next buffer' })
|
||||||
|
Map('n', '<s-tab>', '<cmd>bprevious<cr>', { desc = 'move to previous buffer' })
|
||||||
|
Map('n', '<c-w>', '<cmd>bd<cr>', { desc = 'close buffer' })
|
||||||
|
|
||||||
-- for help exiting certain modes
|
-- for help exiting certain modes
|
||||||
Map({ 'n', 'i' }, '<esc>', '<cmd>nohlsearch<cr><esc>', { desc = 'cancel search highlighting and escape' })
|
Map({ 'n', 'i' }, '<esc>', '<cmd>nohlsearch<cr><esc>', { desc = 'cancel search highlighting and escape' })
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ require('mini.statusline').setup({
|
|||||||
use_icons = true,
|
use_icons = true,
|
||||||
set_vim_settings = true,
|
set_vim_settings = true,
|
||||||
})
|
})
|
||||||
require('mini.tabline').setup() -- TODO: port keybindings from the older configuration
|
require('mini.tabline').setup()
|
||||||
require('mini.trailspace').setup() -- trailing space indication and removal.
|
require('mini.trailspace').setup() -- trailing space indication and removal.
|
||||||
|
|
||||||
---@module 'lazy'
|
---@module 'lazy'
|
||||||
|
|||||||
Reference in New Issue
Block a user