From 7328b847df551a1c034063356e071a59b5b7c7bf Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Wed, 6 Nov 2024 10:30:45 +0000 Subject: [PATCH] fix: Define tig and lazygit terminals as floating --- lua/custom/plugins/astrocore.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/custom/plugins/astrocore.lua b/lua/custom/plugins/astrocore.lua index 0eceb6c..cbd3458 100644 --- a/lua/custom/plugins/astrocore.lua +++ b/lua/custom/plugins/astrocore.lua @@ -57,15 +57,15 @@ return { -- [""] = { "Telescope help_tags", desc = "Find help with Telescope" }, [""] = { "Neotree toggle", desc = "File Explorer" }, -- F26 corresponds to on my keyboard - [""] = { function() require("astrocore").toggle_term_cmd "lazygit" end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard - [""] = { function() require("astrocore").toggle_term_cmd "tig" end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard + [""] = { function() require("astrocore").toggle_term_cmd({cmd="lazygit", direction="float"}) end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard + [""] = { function() require("astrocore").toggle_term_cmd({cmd="tig", direction="float"}) 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("astrocore").toggle_term_cmd "lazygit" end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard - [""] = { function() require("astrocore").toggle_term_cmd "tig" end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard + [""] = { function() require("astrocore").toggle_term_cmd({cmd="lazygit", direction="float"}) end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard + [""] = { function() require("astrocore").toggle_term_cmd({cmd="tig", direction="float"}) end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard }, -- Terminal mode @@ -81,8 +81,8 @@ return { [""] = false, [""] = false, -- My terms - [""] = { function() require("astrocore").toggle_term_cmd "lazygit" end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard - [""] = { function() require("astrocore").toggle_term_cmd "tig" end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard + [""] = { function() require("astrocore").toggle_term_cmd({cmd="lazygit", direction="float"}) end, desc = "Lazygit terminal" }, -- F27 corresponds to on my keyboard + [""] = { function() require("astrocore").toggle_term_cmd({cmd="tig", direction="float"}) end, desc = "Tig terminal" }, -- F28 corresponds to on my keyboard }, }, },