From 85c8aaaf55b7bda59f9f2cc377ed639a339335e2 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Sat, 18 May 2024 22:00:13 -0400 Subject: [PATCH] Adding multi-cursor goodness and Telescoping into hidden files --- after/plugin/telescope.lua | 8 ++++++++ lua/pippy/lazy.lua | 1 + 2 files changed, 9 insertions(+) diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index 1cc19ee..bfc4dab 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -1,5 +1,13 @@ local builtin = require('telescope.builtin') vim.keymap.set('n', 'ff', builtin.find_files, { desc = "Find files" }) vim.keymap.set('n', 'fg', builtin.live_grep, { desc = "Find in live grep" }) +vim.keymap.set('n', 'fag', + function() + require('telescope.builtin').live_grep({ additional_args = { "-u" } }) + end, { desc = "Find in live grep(including ignored files)" }) vim.keymap.set('n', 'fs', builtin.grep_string, { desc = "Find string" }) +vim.keymap.set('n', 'fas', + function() + require('telescope.builtin').grep_string({ additional_args = { "-u" } }) + end, { desc = "Find all strings(including ignored files)" }) vim.keymap.set('n', 'fh', builtin.help_tags, { desc = "Find from help" }) diff --git a/lua/pippy/lazy.lua b/lua/pippy/lazy.lua index 4f53f11..0fbef0f 100644 --- a/lua/pippy/lazy.lua +++ b/lua/pippy/lazy.lua @@ -51,4 +51,5 @@ require("lazy").setup({ 'lewis6991/gitsigns.nvim', {'xiyaowong/transparent.nvim'}, { 'numToStr/Comment.nvim', opts = {} }, + { 'mg979/vim-visual-multi' }, })