nvim-config

Log | Files | Refs | Submodules | README

commit d599b24904d07b5f0f2333dca531b2a5fc9d3ac7
parent 0b01d1ef6d081955d21ba7909e5f13c675677aa2
Author: Thomas Vigouroux <tomvig38@gmail.com>
Date:   Fri, 24 Sep 2021 09:14:29 +0200

fix(telescope): use ivy theme by default

Diffstat:
Mlua/tele_config.lua | 17++---------------
1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/lua/tele_config.lua b/lua/tele_config.lua @@ -26,27 +26,14 @@ map('n', '<Leader>q', lua_call('telescope.builtin', 'quickfix')) map('n', '<Leader>r', lua_call('telescope.builtin', 'live_grep')) map('n', 'z=', lua_call('telescope.builtin', 'spell_suggest')) +tele.load_extension('fzy_native') local sorters = require'telescope.sorters' -local previewers = require'telescope.previewers' tele.setup { - defaults = { - sorting_strategy = 'ascending', + defaults = require 'telescope.themes'.get_ivy { generic_sorter = sorters.get_fzy_sorter, file_sorter = sorters.get_fzy_sorter, - layout_strategy = 'center', - file_previewer = previewers.vim_buffer_cat.new, - grep_previewer = previewers.vim_buffer_vimgrep.new, - qflist_previewer = previewers.vim_buffer_qflist.new, } } -tele.load_extension('fzy_native') - -function M.workspace_symbols() - local query = vim.fn.input('Query : ') - - tele_builtin.lsp_workspace_symbols { timeout = math.inf, query = query } -end - return M