From 0b62548ef4bbe1e538fe6d8c3c144cab88d49735 Mon Sep 17 00:00:00 2001 From: "Caufield, Greg" Date: Fri, 31 May 2024 23:41:07 -0600 Subject: [PATCH] Change Floaterm Launch Keyset Use [T]oggle [T]erminal to be more constient with how commands are launched --- init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 0e09068b93e..bb7a0cea79a 100644 --- a/init.lua +++ b/init.lua @@ -288,6 +288,7 @@ require('lazy').setup({ ['s'] = { name = '[S]earch', _ = 'which_key_ignore' }, ['w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, ['t'] = { name = '[T]oggle', _ = 'which_key_ignore' }, + ['n'] = { name = '[N]ew', _ = 'which_key_ignore' }, ['h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' }, } -- visual mode @@ -896,14 +897,14 @@ require('lazy').setup({ -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information }, config = function() - vim.keymap.set('n', '', ':Neotree toggle') + vim.keymap.set('n', 'tn', ':Neotree toggle', { desc = '[T]oggle [N]eotree' }) end, }, { -- Floating Terminal 'voldikss/vim-floaterm', config = function() - vim.keymap.set('n', 'ft', ':FloatermNew --name=myfloat --height=0.8 --width=0.7 --autoclose=2 fish ') - vim.keymap.set('n', 't', ':FloatermToggle myfloat ') + vim.keymap.set('n', 'nt', ':FloatermNew --name=myfloat --height=0.8 --width=0.7 --autoclose=2 fish ', { desc = '[N]ew [T]erminal' }) + vim.keymap.set('n', 'tt', ':FloatermToggle myfloat ', { desc = '[T]oggle [T]erminal' }) vim.keymap.set('t', '', ':q') end, },