diff options
author | Squibid <me@zacharyscheiman.com> | 2022-12-30 12:42:17 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2022-12-30 12:42:17 -0500 |
commit | eaa58ff6184e6b0bb3abf03d2314864795a13fbd (patch) | |
tree | 01c211d0c668d90da20b2c6a678b9d40b09ff20f /core/overrides/telescope.lua | |
parent | 65a03860fbf2216efd8f24e295c70e8027608d72 (diff) | |
download | nvim-eaa58ff6184e6b0bb3abf03d2314864795a13fbd.tar.gz nvim-eaa58ff6184e6b0bb3abf03d2314864795a13fbd.tar.bz2 nvim-eaa58ff6184e6b0bb3abf03d2314864795a13fbd.zip |
reorganize to multi file config and switch to lazy.nvim for plugins
Diffstat (limited to 'core/overrides/telescope.lua')
-rw-r--r-- | core/overrides/telescope.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/core/overrides/telescope.lua b/core/overrides/telescope.lua new file mode 100644 index 0000000..546a33c --- /dev/null +++ b/core/overrides/telescope.lua @@ -0,0 +1,33 @@ +local telescope = require('telescope') +local actions = require('telescope.actions') + +telescope.load_extension('undo') +telescope.setup { + defaults = { + borderchars = { " ", " ", " ", " ", " ", " ", " ", " " }, + sorting_strategy = 'ascending', + layout_config = { + height = 0.9, + prompt_position = 'top', + }, + mappings = { + i = { + ['<C-h>'] = 'which_key', + ['<C-j>'] = actions.move_selection_next, + ['<C-k>'] = actions.move_selection_previous, + ['<C-l>'] = actions.select_default, + ['<C-u>'] = actions.preview_scrolling_up, + ['<C-d>'] = actions.preview_scrolling_down, + }, + n = { + ["gg"] = actions.move_to_top, + ["G"] = actions.move_to_bottom, + }, + }, + } +} + +a.nvim_create_autocmd('User', { + pattern = 'TelescopePreviewerLoaded', + command = 'setlocal number', +}) |