nvim: Add floating terminal toggle mapping

Follows logic of other toggle maps for neovim, i.e. <leader>tt for
buffer-term and <leader>tT for floating term.
This commit is contained in:
Marty Oehme 2025-12-10 09:32:14 +01:00
parent cf544e4740
commit 4b720464ff
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -72,7 +72,8 @@ return { -- simple programmable terminal toggling for nvim
end,
cmd = { "ToggleTerm", "TermExec", "Lazygit", "Pythonterm", "Euporieterm" },
keys = {
{ "<leader>tt", ":ToggleTerm<cr>", desc = "terminal" },
{ "<leader>tt", ":ToggleTerm<cr>", desc = "terminal buffer" },
{ "<leader>tT", ":ToggleTerm direction='float'<cr>", desc = "terminal floating" },
{ "<leader>tg", ":Lazygit<cr>", desc = "git floating" },
{ "<leader>tG", ":Lazygit!<cr>", desc = "git buffer" },
{ "<leader>tp", ":Pythonterm<cr>", desc = "python floating" },