lua grep theming

This commit is contained in:
Barak Michener 2021-07-01 15:30:12 -07:00
parent 2e0dabc7f8
commit 86669142bf
2 changed files with 36 additions and 5 deletions

View file

@ -111,3 +111,30 @@ require('lspkind').init({
Struct = 'struct',
},
})
require('telescope').setup {
}
local builtin = require'telescope.builtin'
local dropdown = require'telescope.themes'.get_dropdown({
--previewer = false,
--prompt_title = "",
--results_height = 16,
--width = 0.6,
--borderchars = {
--{"─", "│", "─", "│", "╭", "╮", "╯", "╰"},
--prompt = {"─", "│", " ", "│", "╭", "╮", "│", "│"},
--results = {"─", "│", "─", "│", "├", "┤", "╯", "╰"},
--preview = {"─", "│", "─", "│", "╭", "╮", "╯", "╰"}
--},
--winblend = 10
})
git_grep_word = function(conf)
local opt = dropdown
opt.cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1]
for k,v in pairs(conf) do opt[k] = v end
builtin.grep_string(opt)
end