Skip to content

Commit

Permalink
Merge pull request #20 from fabmorais/fix-treetoggle-and-terminal-nav
Browse files Browse the repository at this point in the history
fix navigation beweene treetoggle and split below terminal
  • Loading branch information
fabmorais authored Jun 15, 2024
2 parents 4907815 + c86d52a commit bf3ecca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/mappings/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ map("i", "<C-J>", 'copilot#Accept("<CR>")', { silent = true, expr = true })
map("n", "<C-d>", "<C-d>zz", { noremap = true, silent = false })
map("n", "<C-u>", "<C-u>zz", { noremap = true, silent = false })

-- Create custom keybindings for terminal navigation
-- Use <C-j> to move to the split below and <C-k> to move to the split above from terminal
-- <C-h> and <C-l> move between NvimTreeToggle and terminal
map("t", "<C-j>", "<C-\\><C-n><C-w>j", { noremap = true, silent = true })
map("t", "<C-k>", "<C-\\><C-n><C-w>k", { noremap = true, silent = true })
map("t", "<C-h>", "<C-\\><C-n><C-w>h", { noremap = true, silent = true })
map("t", "<C-l>", "<C-\\><C-n><C-w>l", { noremap = true, silent = true })

-- map(
-- "n",
Expand Down

0 comments on commit bf3ecca

Please sign in to comment.