2022-08-24 00:01:06 +03:00
|
|
|
local map = vim.keymap.set
|
2021-08-08 15:33:23 +03:00
|
|
|
|
|
|
|
-- Telescope
|
2022-08-24 00:38:10 +03:00
|
|
|
--map('n', '<C-f>', '<cmd>Telescope find_files find_command=fd,-Ht,f<CR>')
|
|
|
|
--map('n', '<C-g>', '<cmd>Telescope live_grep<CR>')
|
2021-08-08 15:33:23 +03:00
|
|
|
|
|
|
|
-- Navigate between buffers
|
2022-08-24 00:38:10 +03:00
|
|
|
map('n', '<C-N>', vim.cmd.bn, {silent = true})
|
|
|
|
map('n', '<C-B>', vim.cmd.bp, {silent = true})
|
2021-08-08 15:33:23 +03:00
|
|
|
|
|
|
|
-- Navigate between splits
|
2022-08-24 00:01:06 +03:00
|
|
|
map('n', '<C-H>', '<C-W><C-H>')
|
|
|
|
map('n', '<C-J>', '<C-W><C-J>')
|
|
|
|
map('n', '<C-K>', '<C-W><C-K>')
|
|
|
|
map('n', '<C-L>', '<C-W><C-L>')
|
2022-01-15 12:32:28 +02:00
|
|
|
|
2022-01-31 14:38:02 +02:00
|
|
|
-- Run Neoformat
|
2022-08-24 00:38:10 +03:00
|
|
|
map('n', '<M-f>', vim.cmd.Neoformat)
|
|
|
|
|
|
|
|
-- Exit terminal insert mode with esc
|
|
|
|
map('t', '<Esc>', '<C-\\><C-n>')
|