diff --git a/lua/custom/plugins/terminal.lua b/lua/custom/plugins/terminal.lua index 8814a61ca47..e864c4a0af8 100644 --- a/lua/custom/plugins/terminal.lua +++ b/lua/custom/plugins/terminal.lua @@ -1,3 +1,10 @@ return { 'voldikss/vim-floaterm', + keys = { + { 'ot', 'FloatermToggle', desc = '[O]pen floating [t]erminal', mode='n' }, + }, + config = function () + vim.keymap.set('t', "", ":FloatermHide") + end + } diff --git a/lua/reymerk/remap.lua b/lua/reymerk/remap.lua index bdd04145d44..3135e1faa70 100644 --- a/lua/reymerk/remap.lua +++ b/lua/reymerk/remap.lua @@ -46,12 +46,9 @@ vim.keymap.set("n", "Q", "") -- Replace under cursor vim.keymap.set("n", "r", [[:%s/\<\>//gI]]) --- To open termial -vim.keymap.set('n', 'ot', function() vim.api.nvim_command('FloatermToggle') end, { desc = '[O]pen floating [t]erminal' }) +-- To open full-page terminal -- no plugins neede vim.keymap.set('n', 'oT', function() vim.api.nvim_command('terminal') end, { desc = '[O]pen Full-page [T]erminal' }) -vim.keymap.set('t', "", ":FloatermHide") - -- Remap for dealing with word wrap vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }) vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })