Skip to content

Instantly share code, notes, and snippets.

@radu-matei
Created April 2, 2023 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radu-matei/68ec5f57d96bc36035effe431f5e99c3 to your computer and use it in GitHub Desktop.
Save radu-matei/68ec5f57d96bc36035effe431f5e99c3 to your computer and use it in GitHub Desktop.
Random config
require('telescope').setup {
defaults = {
selection_caret = "» ",
initial_mode = "insert",
selection_strategy = "reset",
sorting_strategy = "ascending",
layout_strategy = "horizontal",
layout_config = {
horizontal = {
prompt_position = "top",
preview_width = 0.70,
results_width = 0.70,
},
vertical = {
mirror = false,
},
width = 0.87,
height = 0.80,
preview_cutoff = 120,
},
file_sorter = require("telescope.sorters").get_fuzzy_file,
file_ignore_patterns = { "node_modules" },
generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter,
path_display = { "truncate" },
borderchars = {
prompt = { "─", " ", " ", " ", "─", "─", " ", " " },
results = { " " },
preview = { " " },
},
mappings = {
i = {
['<C-u>'] = false,
['<C-d>'] = false,
},
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment