mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-30 15:52:23 +00:00
21 lines
757 B
Text
21 lines
757 B
Text
|
(local {: autoload : utils} (require :dots.prelude))
|
||
|
(local telescope (autoload :telescope))
|
||
|
(local actions (autoload :telescope.actions))
|
||
|
|
||
|
(fn setup []
|
||
|
(telescope.setup
|
||
|
{:defaults {:mappings {:i {:<esc> actions.close}}
|
||
|
:file_ignore_patterns ["Cargo.lock" ".*.snap" "docs/theme/.*" "node%_modules/.*" "target/.*"]}
|
||
|
:extensions {:ui-select [((. (require "telescope.themes") :get_dropdown))]}})
|
||
|
|
||
|
(telescope.load_extension "dap")
|
||
|
|
||
|
(utils.keymap :n :<C-p> ":Telescope find_files<CR>"))
|
||
|
|
||
|
[(utils.plugin :nvim-telescope/telescope.nvim
|
||
|
{:config setup
|
||
|
:cmd ["Telescope"]
|
||
|
:dependencies [:nvim-lua/popup.nvim
|
||
|
:nvim-lua/plenary.nvim]})]
|
||
|
|