update vimrc, add lightspeed and better grep
This commit is contained in:
parent
48ec212fb2
commit
7ac7bf0f1f
2 changed files with 12 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue