Skip to content

Commit

Permalink
Revert back to hjkl movement keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
Milton Montero committed Aug 6, 2022
1 parent 9ef66f4 commit d5368f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
20 changes: 4 additions & 16 deletions lua/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ local inoremap = Utils.inoremap
vim.g.mapleader = " "
vim.g.maplocalleader = " "

-- shift movement keys to the right
nnoremap("j", "<Left>")
nnoremap("k", "<Down>")
nnoremap("l", "<Up>")
nnoremap(";", "<Right>")
nnoremap("h", ";")

vnoremap("j", "<Left>")
vnoremap("k", "<Down>")
vnoremap("l", "<Up>")
vnoremap(";", "<Right>")
vnoremap("h", ";")

-- kj to normal mode
inoremap("lk", "<Esc>")
Expand All @@ -41,10 +29,10 @@ nnoremap("<C-s>", ":w<CR>")
nnoremap("<C-c>", ":q<CR>")

-- Move around windows (shifted to the right)
nnoremap("<C-j>", "<C-w>h")
nnoremap("<C-k>", "<C-w>j")
nnoremap("<C-l>", "<C-w>k")
nnoremap("<C-;>", "<C-w>l")
nnoremap("<C-h>", "<C-w>h")
nnoremap("<C-j>", "<C-w>j")
nnoremap("<C-k>", "<C-w>k")
nnoremap("<C-l>", "<C-w>l")

-- Switch buffers (needs nvim-bufferline)
nnoremap("<TAB>", ":BufferLineCycleNext<CR>")
Expand Down
4 changes: 2 additions & 2 deletions lua/plugins/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ require('telescope').setup({
sorting_strategy = "ascending",
mappings = {
i = {
['<C-k>'] = actions.move_selection_next,
['<C-l>'] = actions.move_selection_previous,
['<C-j>'] = actions.move_selection_next,
['<C-k>'] = actions.move_selection_previous,
['<C-c>'] = actions.close,
},
n = {
Expand Down

0 comments on commit d5368f1

Please sign in to comment.