summaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/plugins/telescope.lua
blob: 219e80b88c80e3474ee54288dc7192c5ee4c1838 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local ts = require 'telescope'

ts.setup {
	-- pickers = {},
	-- extensions = {},
}

ts.load_extension 'fzf'

local tb = require 'telescope.builtin'
local wk = require 'which-key'
wk.register {
	['<leader>f'] = {
		name = '+find',
		f = { tb.find_files, 'Find File' },
		g = { tb.live_grep, 'Live Grep' },
		b = { tb.buffers, 'Find Buffer' },
		h = { tb.help_tags, 'Find Help' },
		c = { tb.commands, 'Find Command' },
		t = { tb.treesitter, 'Find Treesitter' },
	}
}