22 lines
1.1 KiB
Fennel
22 lines
1.1 KiB
Fennel
(import-macros {: setup} :macros)
|
|
|
|
(local actions (require :telescope.actions))
|
|
|
|
(setup :telescope
|
|
{:defaults {:mappings {:i {"<C-Down>" actions.cycle_history_next
|
|
"<C-Up>" actions.cycle_history_prev}
|
|
:n {:S actions.file_split
|
|
:s actions.file_vsplit}}
|
|
:get_selection_window (. (require :window-picker) :pick_window)}
|
|
:pickers {:find_files {:find_command [:fd "--type" "f"
|
|
"--strip-cwd-prefix"
|
|
"--hidden"]}
|
|
:live_grep {:vimgrep_arguments ["rg"
|
|
"--color=never"
|
|
"--no-heading"
|
|
"--with-filename"
|
|
"--line-number"
|
|
"--column"
|
|
"--smart-case"
|
|
"--hidden"]}}})
|