diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-06-24 16:34:51 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-06-24 16:34:51 +0800 |
commit | 2a1645ae9593114514a7f28fa6d9109d1820375d (patch) | |
tree | bab2ac0a019ca9af961a04b2a58f0bac3d49bdeb /vim/nvim/lua/configs/telescope.lua | |
parent | fdb53f590cef5499b14322d22fee47722b135626 (diff) |
Update
Diffstat (limited to 'vim/nvim/lua/configs/telescope.lua')
-rw-r--r-- | vim/nvim/lua/configs/telescope.lua | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/vim/nvim/lua/configs/telescope.lua b/vim/nvim/lua/configs/telescope.lua new file mode 100644 index 0000000..73c64e5 --- /dev/null +++ b/vim/nvim/lua/configs/telescope.lua | |||
@@ -0,0 +1,48 @@ | |||
1 | return { | ||
2 | defaults = { | ||
3 | mappings = { | ||
4 | i = { | ||
5 | -- ["<c-j>"] = "move_selection_next", | ||
6 | -- ["<c-k>"] = "move_selection_previous", | ||
7 | ["<C-w>"] = require("telescope.actions.layout").toggle_preview, | ||
8 | ["<C-u>"] = false, | ||
9 | }, | ||
10 | }, | ||
11 | layout_config = { | ||
12 | horizontal = { | ||
13 | prompt_position = "bottom", | ||
14 | }, | ||
15 | vertical = { height = 0.8 }, | ||
16 | -- other layout configuration here | ||
17 | preview_cutoff = 0, | ||
18 | }, | ||
19 | }, | ||
20 | pickers = { | ||
21 | buffers = { | ||
22 | show_all_buffers = true, | ||
23 | sort_lastused = true, | ||
24 | theme = "dropdown", | ||
25 | previewer = false, | ||
26 | mappings = { | ||
27 | i = { | ||
28 | ["<c-d>"] = "delete_buffer", | ||
29 | }, | ||
30 | n = { | ||
31 | ["<c-d>"] = "delete_buffer", | ||
32 | } | ||
33 | } | ||
34 | }, | ||
35 | |||
36 | }, | ||
37 | extensions_list = {}, | ||
38 | extensions = { | ||
39 | aerial = { | ||
40 | -- Display symbols as <root>.<parent>.<symbol> | ||
41 | show_nesting = { | ||
42 | ["_"] = false, -- This key will be the default | ||
43 | json = true, -- You can set the option for specific filetypes | ||
44 | yaml = true, | ||
45 | }, | ||
46 | }, | ||
47 | }, | ||
48 | } | ||