update vimrc, add lightspeed and better grep

This commit is contained in:
Barak Michener 2021-09-18 17:20:29 -07:00
parent 48ec212fb2
commit 7ac7bf0f1f
2 changed files with 12 additions and 1 deletions

View file

@ -168,6 +168,15 @@ local dropdown = require'telescope.themes'.get_dropdown({
--winblend = 10
})
live_grep_repo = function(conf)
--local opt = dropdown
local opt = {
cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1]
}
for k,v in pairs(conf) do opt[k] = v end
builtin.live_grep(opt)
end
git_grep_word = function(conf)
local opt = dropdown
opt.cwd = vim.fn.systemlist("git rev-parse --show-toplevel")[1]