From 289cbfe53ae230cfd9ca0eadab9de4ea275ca583 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sun, 5 Feb 2023 20:18:42 -0500 Subject: [PATCH] Swap to ripgrep (slowly) --- install.sh | 2 +- nvim/.config/nvim/after/plugin/config.lua | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 62d51de..d2eaae0 100755 --- a/install.sh +++ b/install.sh @@ -17,7 +17,7 @@ install_shared_applications() { brew install direnv fzf git stow the_silver_searcher tmux \ vim zsh rbenv ruby-build tfenv nodenv node-build tig libpq gnupg llvm \ awscli cmake jq watch gh nvim openssl@1.1 openssl@3 readline libyaml gmp \ - pyenv + pyenv ripgrep install_fzf install_rust diff --git a/nvim/.config/nvim/after/plugin/config.lua b/nvim/.config/nvim/after/plugin/config.lua index 883fc61..573a60a 100644 --- a/nvim/.config/nvim/after/plugin/config.lua +++ b/nvim/.config/nvim/after/plugin/config.lua @@ -47,11 +47,28 @@ vim.keymap.set("n", "pc", ":PackerClean") --- telescope.nvim vim.keymap.set("n", "", function() require("telescope.builtin").find_files({ - file_ignore_patterns = {".git/", "node_modules/"}, hidden = true, previewer = false, }) end) +vim.keymap.set('n', 'ff', function() + require("telescope.builtin").find_files({ + file_ignore_patterns = {".git/", "node_modules/"}, + hidden = true, + no_ignore = true, + previewer = false, + }) +end) +vim.keymap.set('n', 'fg', function() + require("telescope.builtin").live_grep({ + file_ignore_patterns = {".git/", "node_modules/"}, + hidden = true, + previewer = false, + }) +end) +vim.keymap.set('n', 'fb', function() + require("telescope.builtin").buffers() +end) --- whitespace.nvim require("whitespace-nvim").setup({