diff options
author | Squibid <me@zacharyscheiman.com> | 2023-07-06 12:35:56 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-07-06 12:35:56 -0400 |
commit | 169aa170a216f07af36a55f1305f8eea594aa2ef (patch) | |
tree | 7022f23c6b9fc42533ab74da0f924471039b54f7 /after/plugin/telescope.lua | |
parent | 1b5f19283295a524be498152e56b1324a240e8ac (diff) | |
download | nvim-169aa170a216f07af36a55f1305f8eea594aa2ef.tar.gz nvim-169aa170a216f07af36a55f1305f8eea594aa2ef.tar.bz2 nvim-169aa170a216f07af36a55f1305f8eea594aa2ef.zip |
change the look of telescope a bit and remove unneeded stuff
Diffstat (limited to 'after/plugin/telescope.lua')
-rw-r--r-- | after/plugin/telescope.lua | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index 0674b21..9411e61 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -3,6 +3,7 @@ if not status_ok then return end local actions = require('telescope.actions') +local action_layout = require("telescope.actions.layout") telescope.setup { defaults = { @@ -12,31 +13,27 @@ telescope.setup { preview = {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' }; }, sorting_strategy = 'ascending', + -- 'horizontal', 'vertical', 'bottom_pane', or 'cursor' layout_strategy = 'bottom_pane', layout_config = { - height = 0.3, + bottom_pane = { height = 0.4, }, }, mappings = { i = { + ["<esc>"] = actions.close, ['<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, + ["<C-p>"] = action_layout.toggle_preview }, n = { ["gg"] = actions.move_to_top, ["G"] = actions.move_to_bottom, }, }, - extensions = { - ["ui-select"] = { - require("telescope.themes").get_ivy { - -- even more opts - } - } - }, } } telescope.load_extension('file_browser') |