-
-
Notifications
You must be signed in to change notification settings - Fork 846
Gallery
DragonBillow edited this page Jul 16, 2022
·
7 revisions
Some examples of telescope configuration
local dropdown_theme = require('telescope.themes').get_dropdown({
results_height = 20;
winblend = 20;
width = 0.8;
prompt_title = '';
prompt_prefix = 'Files>';
previewer = false;
borderchars = {
prompt = {'▀', '▐', '▄', '▌', '▛', '▜', '▟', '▙' };
results = {' ', '▐', '▄', '▌', '▌', '▐', '▟', '▙' };
preview = {'▀', '▐', '▄', '▌', '▛', '▜', '▟', '▙' };
};
})
local full_theme = {
winblend = 20;
width = 0.8;
show_line = false;
prompt_prefix = 'TS Symbols>';
prompt_title = '';
results_title = '';
preview_title = '';
borderchars = {
prompt = {'▀', '▐', '▄', '▌', '▛', '▜', '▟', '▙' };
results = {'▀', '▐', '▄', '▌', '▛', '▜', '▟', '▙' };
preview = {'▀', '▐', '▄', '▌', '▛', '▜', '▟', '▙' };
};
}
local no_preview = function()
return require('telescope.themes').get_dropdown({
borderchars = {
{ '─', '│', '─', '│', '┌', '┐', '┘', '└'},
prompt = {"─", "│", " ", "│", '┌', '┐', "│", "│"},
results = {"─", "│", "─", "│", "├", "┤", "┘", "└"},
preview = { '─', '│', '─', '│', '┌', '┐', '┘', '└'},
},
width = 0.8,
previewer = false,
prompt_title = false
})
end
-- then use it on whatever picker you want
-- ex:
require"telescope.builtin".current_buffer_fuzzy_find(no_preview())
local TelescopePrompt = {
TelescopePromptNormal = {
bg = '#2d3149',
},
TelescopePromptBorder = {
bg = '#2d3149',
},
TelescopePromptTitle = {
fg = '#2d3149',
bg = '#2d3149',
},
TelescopePreviewTitle = {
fg = '#1F2335',
bg = '#1F2335',
},
TelescopeResultsTitle = {
fg = '#1F2335',
bg = '#1F2335',
},
}
for hl, col in pairs(TelescopePrompt) do
vim.api.nvim_set_hl(0, hl, col)
end