summaryrefslogtreecommitdiff
path: root/config/nvim/lua/plugins/telescope.lua
blob: 018d95c53c5f7595fd3552582d461d2ff64eb72a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
return {
	"nvim-telescope/telescope.nvim",
	dependencies = {
		"nvim-lua/plenary.nvim",
	},
	config = function()
		local actions = require("telescope.actions")
		require("telescope").setup({
			extensions = {
				project = {
					sync_with_nvim_tree = true,
				},
			},
			pickers = {
				buffers = {
					initial_mode = "normal",
				},
			},
			defaults = {
				file_ignore_patterns = { "vendor", "node_modules" },
				mappings = {
					i = {
						["<F4>"] = actions.close,
					},
					n = {
						["<F4>"] = actions.close,
					},
				},
			},
		})
	end,
}