-
Beta Was this translation helpful? Give feedback.
Answered by
gxt-kt
May 23, 2024
Replies: 2 comments 1 reply
-
Is |
Beta Was this translation helpful? Give feedback.
0 replies
-
Really thanks for your reply. if pcall(require, "smart-splits") then
-- for smart-splits
vim.keymap.set("t", "<C-h>", [[<cmd>lua require('smart-splits').move_cursor_left()<cr>]], opts)
vim.keymap.set("t", "<C-j>", [[<cmd>lua require('smart-splits').move_cursor_down()<cr>]], opts)
vim.keymap.set("t", "<C-k>", [[<cmd>lua require('smart-splits').move_cursor_up()<cr>]], opts)
vim.keymap.set("t", "<C-l>", [[<cmd>lua require('smart-splits').move_cursor_right()<cr>]], opts)
else
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)
end |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mrjones2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Really thanks for your reply.
I check the keymap and find the keymap in terminal.
So i change the following toggleterm config and solve the problem.