@@ -19,6 +19,12 @@ telescope.setup({opts}) *telescope.setup()*
19
19
20
20
Valid keys for {opts.defaults}
21
21
22
+ *telescope.defaults.border*
23
+ border: ~
24
+ Boolean defining if borders are added to Telescope windows.
25
+
26
+ Default: true
27
+
22
28
*telescope.defaults.default_mappings*
23
29
default_mappings: ~
24
30
Not recommended to use except for advanced users.
@@ -93,25 +99,40 @@ telescope.setup({opts}) *telescope.setup()*
93
99
94
100
mappings = {
95
101
i = {
96
- ["<esc> "] = actions.close,
102
+ ["<esc> "] = require('telescope. actions') .close,
97
103
},
98
104
}
99
105
100
106
101
107
To disable a keymap, put [map] = false
102
108
So, to not map "<C-n> ", just put
103
109
104
- ...,
105
- ["<C-n> "] = false,
106
- ...,
110
+ ...,
111
+ ["<C-n> "] = false,
112
+ ...,
107
113
108
114
Into your config.
109
115
110
116
111
117
otherwise, just set the mapping to the function that you want it to be.
112
118
113
119
...,
114
- ["<C-i> "] = actions.select_default
120
+ ["<C-i> "] = require('telescope.actions').select_default,
121
+ ...,
122
+
123
+ If the function you want is part of `telescope.actions` , then you can simply give a string.
124
+ For example, the previous option is equivalent to:
125
+
126
+ ...,
127
+ ["<C-i> "] = "select_default",
128
+ ...,
129
+
130
+ You can also add other mappings using tables with `type = "command"`.
131
+ For example:
132
+
133
+ ...,
134
+ ["jj"] = { "<esc> ", type = "command" },
135
+ ["kk"] = { "<cmd> echo \"Hello, World!\"<cr> ", type = "command" },)
115
136
...,
116
137
117
138
@@ -559,7 +580,7 @@ require("telescope").setup {
559
580
mappings = {
560
581
i = {
561
582
["<c-d> "] = require("telescope.actions").delete_buffer,
562
- -- or right hand side can also be a the name of the action as string
583
+ -- or right hand side can also be the name of the action as string
563
584
["<c-d> "] = "delete_buffer",
564
585
},
565
586
n = {
@@ -1244,12 +1265,6 @@ resolver.resolve_width() *resolver.resolve_width()*
1244
1265
1245
1266
1246
1267
1247
- resolver.win_option() *resolver.win_option()*
1248
- Win option always returns a table with preview, results, and prompt. It
1249
- handles many different ways. Some examples are as follows:
1250
-
1251
-
1252
-
1253
1268
1254
1269
================================================================================
1255
1270
*telescope.previewers*
0 commit comments