From 8e1079a713c1f662670dfef81a3aadd5368dc676 Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 3 Apr 2024 10:38:12 +0300 Subject: [PATCH] vim plugins --- home/user/.config/nvim/lua/base/mappings/mappings.lua | 7 ++++--- home/user/.config/nvim/lua/base/plugins/telescope.lua | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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' },