fix config not working in other dirs. whoops

This commit is contained in:
Squibid
2022-12-30 12:44:28 -05:00
parent d2527bdb6b
commit 8ee0a06cb2
23 changed files with 0 additions and 0 deletions

View File

@ -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',
})