Gem search, append history
This commit is contained in:
parent
59be754c18
commit
24c2f98d3a
2 changed files with 12 additions and 0 deletions
|
@ -30,6 +30,16 @@ vim.keymap.set('n', '<Leader>fb', function()
|
|||
builtin.buffers()
|
||||
end)
|
||||
|
||||
local gem_dir = vim.fn.systemlist("ruby -e 'puts Gem.dir'")[1]
|
||||
vim.keymap.set('n', '<Leader>fgg', function()
|
||||
builtin.live_grep({
|
||||
file_ignore_patterns = {".git/", "node_modules/"},
|
||||
hidden = true,
|
||||
previewer = false,
|
||||
search_dirs = { gem_dir }
|
||||
})
|
||||
end)
|
||||
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||
|
|
|
@ -11,6 +11,8 @@ done
|
|||
|
||||
source $ZDOTDIR/prompt
|
||||
|
||||
setopt append_history
|
||||
|
||||
# Larger history
|
||||
HISTSIZE=20000
|
||||
HISTFILE=~/.zsh_history
|
||||
|
|
Loading…
Add table
Reference in a new issue