lua grep theming
This commit is contained in:
parent
2e0dabc7f8
commit
86669142bf
2 changed files with 36 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue