patch-8-27-2024
This commit is contained in:
parent
4b0e638557
commit
ea9f710eb5
2 changed files with 66 additions and 3 deletions
23
lua/custom/plugins/terminal.lua
Normal file
23
lua/custom/plugins/terminal.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
return {
|
||||
{
|
||||
'akinsho/toggleterm.nvim',
|
||||
version = '*',
|
||||
config = function()
|
||||
require('toggleterm').setup {
|
||||
size = 15,
|
||||
open_mapping = [[<c-\>]],
|
||||
}
|
||||
-- function _G.set_terminal_keymaps()
|
||||
-- local opts = { buffer = 0 }
|
||||
-- vim.keymap.set('t', '<esc>', [[<C-\><C-n>]], opts)
|
||||
-- vim.keymap.set('t', 'jk', [[<C-\><C-n>]], opts)
|
||||
-- vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts)
|
||||
-- vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts)
|
||||
-- vim.keymap.set('t', '<C-k>', [[<Cmd>wincmd k<CR>]], opts)
|
||||
-- vim.keymap.set('t', '<C-l>', [[<Cmd>wincmd l<CR>]], opts)
|
||||
-- vim.keymap.set('t', '<C-w>', [[<C-\><C-n><C-w>]], opts)
|
||||
-- end
|
||||
-- vim.cmd 'autocmd! TermOpen term://* lua set_terminal_keymaps()'
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue