2022-10-21 06:15:28 -04:00
|
|
|
local keymap = vim.keymap.set
|
|
|
|
|
|
|
|
-- Block arrows
|
|
|
|
vim.api.nvim_set_keymap('', '<up>', '<nop>', {noremap = true})
|
|
|
|
vim.api.nvim_set_keymap('', '<down>', '<nop>', {noremap = true})
|
|
|
|
vim.api.nvim_set_keymap('', '<left>', '<nop>', {noremap = true})
|
|
|
|
vim.api.nvim_set_keymap('', '<right>', '<nop>',{noremap = true})
|
|
|
|
|
2023-08-14 19:28:08 -04:00
|
|
|
keymap("n","<space>,",":nohlsearch<CR>", {desc = "Clear an selected strings"})
|
2022-10-21 06:15:28 -04:00
|
|
|
|
2023-01-04 07:28:57 -05:00
|
|
|
keymap("n","s",'"_d"')
|
2022-10-21 06:15:28 -04:00
|
|
|
|
2023-01-04 07:28:57 -05:00
|
|
|
keymap('n', 'gwh', '<C-w>h')
|
|
|
|
keymap('n', 'gwj', '<C-w>j')
|
|
|
|
keymap('n', 'gwk', '<C-w>k')
|
|
|
|
keymap('n', 'gwl', '<C-w>l')
|
2023-08-14 19:28:08 -04:00
|
|
|
|
|
|
|
keymap("n", "<space>bf",":bf<CR>",{desc = "[G]oto first buffer"})
|
|
|
|
keymap("n", "<space>bl",":bl<CR>",{desc = "[G]oto last buffer"})
|