diff --git a/home/user/.config/nvim/lua/base/mappings/mappings.lua b/home/user/.config/nvim/lua/base/mappings/mappings.lua index 3e8be44..7299142 100644 --- a/home/user/.config/nvim/lua/base/mappings/mappings.lua +++ b/home/user/.config/nvim/lua/base/mappings/mappings.lua @@ -42,7 +42,6 @@ map('n', '', 'O') -- x to blackhole map({'n', 'v'}, 'x', '"_x') -map('n', '', '"_X') -- Put without overwrite yanked text @@ -78,6 +77,10 @@ map("n", 'he', 'set list!', vim.opt.listchars=[[tab:→\ ,eol:↵,trail:·,extends:↷,precedes:↶]] +-- Tab to go prev buffer +map("n", "", ":b#", {silent = true}) + + -- Expand %% to dirname of current file in command line map("c", '%%', [[getcmdtype() == ':' ? expand('%:h').'/' : '%%']], {expr = true}) @@ -109,8 +112,6 @@ function toggle_number_style() end - - local function set_trouble_keymap(key, cmd) map("n", string.format("x%s", key), string.format("TroubleToggle %s", cmd)) end diff --git a/home/user/.config/nvim/lua/base/plugins/telescope.lua b/home/user/.config/nvim/lua/base/plugins/telescope.lua index 64466e4..700ecaa 100644 --- a/home/user/.config/nvim/lua/base/plugins/telescope.lua +++ b/home/user/.config/nvim/lua/base/plugins/telescope.lua @@ -10,7 +10,7 @@ return { } }, keys = { - { 'fb', 'Telescope buffers' }, + { '', 'Telescope buffers' }, { 'ff', 'Telescope find_files' }, { 'fg', 'Telescope live_grep' }, { 'fc', 'Telescope git_commits' },