1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
local tl = require("telescope.builtin")
local key = vim.keymap
vim.g.mapleader = " "
vim.g.localleader = " "
-- movement between splits
key.set("n", "<C-h>", "<C-w>h")
key.set("n", "<C-j>", "<C-w>j")
key.set("n", "<C-k>", "<C-w>k")
key.set("n", "<C-l>", "<C-w>l")
key.set("n", "<C-L>", ":vs<CR>")
key.set("n", "<C-J>", ":sp<CR>")
key.set("n", "<Esc><Esc>", ":nohlsearch<CR>", { silent = true })
key.set("n", "<leader>ff", tl.find_files)
key.set("n", "<leader>f<leader>", tl.git_files)
key.set("n", "<leader><leader>", tl.buffers)
|