dotfiles/.config/nvim/lua/core/keybinds.lua

20 lines
706 B
Lua
Raw Normal View History

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})
2022-12-24 12:33:46 -05:00
keymap("n","<space>,",":nohlsearch<CR>")
2022-10-21 06:15:28 -04:00
2022-12-24 12:33:46 -05:00
-- Telescope --
keymap("n","<leader>ff","<cmd> Telescope find_files <cr>")
keymap("n","<leader>fg","<cmd> Telescope live_grep <cr>")
keymap("n","<leader>fb","<cmd> Telescope buffers <cr>")
2022-10-21 06:15:28 -04:00
-- NvimTree --
keymap("n","<C-n>",":NvimTreeToggle<CR>")
keymap("n","<leader>n",":NvimTreeFindFile<CR>")
keymap("n","<C-]>","gh defx#do_action('cd',getcwd())<CR>")