From c12501c5cc990d98be368f4c603161bd94266cb4 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Tue, 18 Jan 2022 20:53:46 +0100 Subject: [PATCH] [NEOVIM] TreeToggle update keybinding --- configs/nvim/lua/mappings.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configs/nvim/lua/mappings.lua b/configs/nvim/lua/mappings.lua index 51b281a..3d2c18f 100644 --- a/configs/nvim/lua/mappings.lua +++ b/configs/nvim/lua/mappings.lua @@ -9,8 +9,9 @@ local function init() map('n', 'ps', [[lua require('telescope.builtin').grep_string({ search = vim.fn.input("Grep For >")})]]) -------------------- NvimTreeToggle ------------------------ - map('n', '', 'NvimTreeToggle') - map('n', '', 'NvimTreeRefresh') + map('n', 'tt', 'NvimTreeToggle') + map('n', 'tr', 'NvimTreeRefresh') + map('n', 'tf', 'NvimTreeFocus') -------------------- BarBar -------------------------------- -- Move to previous/next @@ -18,7 +19,7 @@ local function init() map('n', '', ':BufferNext', opts) -- Re-order to previous/next map('n', '', ':BufferMovePrevious', opts) - map('n', '>', ' :BufferMoveNext', opts) + map('n', '>', ':BufferMoveNext', opts) -- Close buffer map('n', '', ':BufferClose', opts) @@ -58,6 +59,7 @@ local function init() -------------------- OTHER --------------------------------- map('i', '', ':w') + map('n', '', ':w') -------------------- COMMANDS ------------------------------ cmd 'au TextYankPost * lua vim.highlight.on_yank {on_visual = false}' -- disabled in visual mode @@ -65,4 +67,4 @@ end return { init = init -} \ No newline at end of file +}