From 3b24286f30728f181925737ee34426a68b9526cd Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Wed, 28 Feb 2024 14:58:12 +0100 Subject: [PATCH] better keymap assignment --- lua/custom/plugins/filetree.lua | 3 +++ lua/keymaps.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/filetree.lua b/lua/custom/plugins/filetree.lua index bec15fa..5dfea3f 100644 --- a/lua/custom/plugins/filetree.lua +++ b/lua/custom/plugins/filetree.lua @@ -1,6 +1,9 @@ -- Unless you are still migrating, remove the deprecated commands from v1.x vim.cmd [[ let g:neo_tree_remove_legacy_commands = 1 ]] +-- Open nvim-neo-tree window +vim.keymap.set({ 'n', 'v' }, 'f', ':Neotree toggle', { desc = 'Explore [F]ile Tree' }) + return { 'nvim-neo-tree/neo-tree.nvim', version = '*', diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 9e5e6dd..e157c26 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -35,7 +35,7 @@ vim.keymap.set({ 'n', 'v' }, 'dny', '"_d', { desc = '[D]elete [N]o [Y]an vim.keymap.set('v', 'pny', '"_dP', { desc = '[P]aste [N]o [Y]ank' }) -- Populate CMD to prepare for change directory -vim.keymap.set({ 'n', 'v' }, 'cd', ':cd ', { desc = 'Prepare CMD for [C]hange [D]irectory' }) +vim.keymap.set('n', 'cd', ':cd ', { desc = 'Prepare CMD for [C]hange [D]irectory' }) -- Open git window from fugitive in full screen vim.keymap.set({ 'n', 'v' }, 'go', ':Gito', { desc = '[G]it [O]pen' })