nix-config

My personal nixos and home-manager configuration
Log | Files | Refs | README

telescope.lua (1362B)


      1 require('telescope').setup{
      2   defaults = {
      3     vimgrep_arguments = {
      4       'rg',
      5       '--color=never',
      6       '--no-heading',
      7       '--with-filename',
      8       '--line-number',
      9       '--column',
     10       '--smart-case'
     11     },
     12     prompt_prefix = "> ",
     13     selection_caret = "> ",
     14     entry_prefix = "  ",
     15     initial_mode = "insert",
     16     selection_strategy = "reset",
     17     sorting_strategy = "descending",
     18     layout_strategy = "horizontal",
     19     layout_config = {
     20       horizontal = {
     21         mirror = false,
     22       },
     23       vertical = {
     24         mirror = false,
     25       },
     26     },
     27     file_sorter =  require'telescope.sorters'.get_fuzzy_file,
     28     file_ignore_patterns = {},
     29     generic_sorter =  require'telescope.sorters'.get_generic_fuzzy_sorter,
     30     winblend = 0,
     31     border = {},
     32     borderchars = { '─', '│', '─', '│', '╭', '╮', '╯', '╰' },
     33     color_devicons = true,
     34     use_less = true,
     35     path_display = {},
     36     set_env = { ['COLORTERM'] = 'truecolor' }, -- default = nil,
     37     file_previewer = require'telescope.previewers'.vim_buffer_cat.new,
     38     grep_previewer = require'telescope.previewers'.vim_buffer_vimgrep.new,
     39     qflist_previewer = require'telescope.previewers'.vim_buffer_qflist.new,
     40 
     41     -- Developer configurations: Not meant for general override
     42     buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker
     43   }
     44 }