chore: add direction to ToggleTerm on Home

This commit is contained in:
fiplox 2023-03-21 07:15:04 +01:00
parent a23ce1497b
commit 4fd01909c7

View File

@ -16,10 +16,11 @@ vim.api.nvim_set_keymap('v', '>', '>gv', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<cr>', "@=(foldlevel('.')?'za':\"<Space>\")<CR>", { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<cr>', "@=(foldlevel('.')?'za':\"<Space>\")<CR>", { noremap = true, silent = true })
-- }}} -- }}}
-- terminal {{{ -- terminal {{{
vim.api.nvim_set_keymap('n', '<home>', '<cmd>ToggleTerm<cr>', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<insert>', '<cmd>Lazy profile<cr>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('t', '<home>', '<cmd>ToggleTerm<cr>', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<home>', '<cmd>ToggleTerm direction=horizontal<cr>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('v', '<home>', '<cmd>ToggleTerm<cr>', { noremap = true, silent = true }) vim.api.nvim_set_keymap('t', '<home>', '<cmd>ToggleTerm direction=horizontal<cr>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('i', '<home>', '<cmd>ToggleTerm<cr>', { noremap = true, silent = true }) vim.api.nvim_set_keymap('v', '<home>', '<cmd>ToggleTerm direction=horizontal<cr>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('i', '<home>', '<cmd>ToggleTerm direction=horizontal<cr>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<end>', '<cmd>ToggleTerm direction=vertical<cr>', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<end>', '<cmd>ToggleTerm direction=vertical<cr>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('t', '<end>', '<cmd>ToggleTerm direction=vertical<cr>', { noremap = true, silent = true }) vim.api.nvim_set_keymap('t', '<end>', '<cmd>ToggleTerm direction=vertical<cr>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('v', '<end>', '<cmd>ToggleTerm direction=vertical<cr>', { noremap = true, silent = true }) vim.api.nvim_set_keymap('v', '<end>', '<cmd>ToggleTerm direction=vertical<cr>', { noremap = true, silent = true })
@ -63,6 +64,8 @@ vim.api.nvim_set_keymap(
{ silent = true, noremap = true } { silent = true, noremap = true }
) )
vim.api.nvim_set_keymap('n', 'D', '"_d', { noremap = true })
function MapDHM() function MapDHM()
vim.api.nvim_set_keymap('n', 'i', 'l', { noremap = true }) vim.api.nvim_set_keymap('n', 'i', 'l', { noremap = true })
vim.api.nvim_set_keymap('n', 'n', 'j', { noremap = true }) vim.api.nvim_set_keymap('n', 'n', 'j', { noremap = true })