From b3a4fe90537639eda14898e42db72c31df29343d Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Fri, 24 Nov 2023 19:02:03 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20am=C3=A9lioration=20des=20mappings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/user/mappings.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lua/user/mappings.lua b/lua/user/mappings.lua index 0de989e..2fb6dd4 100644 --- a/lua/user/mappings.lua +++ b/lua/user/mappings.lua @@ -14,6 +14,7 @@ return { -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command -- My telescope keybindings + [""] = { "Telescope help_tags", desc = "Find help with Telescope" }, ["gf"] = { "Telescope git_files", desc = "Find git files with Telescope" }, ["fq"] = { "Telescope quickfix", desc = "Find quickfixes with Telescope" }, ["fs"] = { "Telescope spell_suggest", desc = "Find spell suggestions with Telescope" }, @@ -29,17 +30,17 @@ return { ["²nb"] = { "Neotree toggle buffers left", desc = "Open Neotree Buffers" }, ["²ng"] = { "Neotree toggle git_status left", desc = "Open Neotree Git status" }, - [""] = { 'Neotree toggle', desc = "File Explorer" }, -- F26 corresponds to on my keyboard - [""] = { function() require("astronvim.utils").toggle_term_cmd "lazygit" end, desc = "Lazygit" }, -- F27 corresponds to on my keyboard - [""] = { function() require("astronvim.utils").toggle_term_cmd "tig" end, desc = "Tig" }, -- F28 corresponds to on my keyboard + [""] = { 'Neotree toggle', desc = "File Explorer" }, -- F26 corresponds to on my keyboard + [""] = { function() require("astronvim.utils").toggle_term_cmd "lazygit" end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard + [""] = { function() require("astronvim.utils").toggle_term_cmd "tig" end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard }, -- Insert mode i = { - [""] = { 'Neotree toggle', desc = "File Explorer" }, -- F26 corresponds to on my keyboard - [""] = { function() require("astronvim.utils").toggle_term_cmd "lazygit" end, desc = "Lazygit" }, -- F27 corresponds to on my keyboard - [""] = { function() require("astronvim.utils").toggle_term_cmd "tig" end, desc = "Tig" }, -- F28 corresponds to on my keyboard + [""] = { 'Neotree toggle', desc = "File Explorer" }, -- F26 corresponds to on my keyboard + [""] = { function() require("astronvim.utils").toggle_term_cmd "lazygit" end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard + [""] = { function() require("astronvim.utils").toggle_term_cmd "tig" end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard }, -- Terminal mode @@ -54,7 +55,8 @@ return { -- Clear Ctrl-J and Ctrl-K so that we can use them to navigate the terminal (for lazygit) [""] = false, [""] = false, - [""] = { function() require("astronvim.utils").toggle_term_cmd "lazygit" end, desc = "Lazygit" }, -- F27 corresponds to on my keyboard - [""] = { function() require("astronvim.utils").toggle_term_cmd "tig" end, desc = "Tig" }, -- F28 corresponds to on my keyboard + -- My terms + [""] = { function() require("astronvim.utils").toggle_term_cmd "lazygit" end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard + [""] = { function() require("astronvim.utils").toggle_term_cmd "tig" end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard }, }