Changed the terminal shortcut to <leader>TT

This commit is contained in:
Eduardo Cueto-Mendoza 2024-03-28 14:40:24 +00:00
parent 6e86d63445
commit 010847cd73
2 changed files with 8 additions and 8 deletions

View File

@ -0,0 +1,8 @@
--local builtin = require('vim-floaterm.builtin')
vim.keymap.set("n", "<leader>TS",
"<cmd>:FloatermNew --height=0.3 --width=0.8 --wintype=float --name=floaterm1 --position=center --autoclose=2<CR>", { desc = "Open FloatTerm" })
vim.keymap.set("n", "<leader>TT",
"<cmd>:FloatermToggle<CR>", { desc = "Toggle FloatTerm" })
vim.keymap.set("t", "<leader>TT",
"<cmd>:FloatermToggle<CR>", { desc = "Toggle FloatTerm" })

View File

@ -257,14 +257,6 @@ local plugins = {
},
{
'voldikss/vim-floaterm',
config = function()
vim.keymap.set("n", "<leader>ft",
"<cmd>:FloatermNew --height=0.3 --width=0.8 --wintype=float --name=floaterm1 --position=center --autoclose=2<CR>", { desc = "Open FloatTerm" })
vim.keymap.set("n", "<leader>flt",
"<cmd>:FloatermToggle<CR>", { desc = "Toggle FloatTerm" })
vim.keymap.set("t", "<leader>flt",
"<cmd>:FloatermToggle<CR>", { desc = "Toggle FloatTerm" })
end
},
{
'tummetott/unimpaired.nvim',