From 2a75324aa3c524f63704a0b6939c58c2d0b12da3 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Wed, 5 Apr 2023 08:37:00 +0200 Subject: [nvim] limit zettelkasten grep to zettels --- neovim/.config/nvim/lua/dyamon/zettel.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'neovim') diff --git a/neovim/.config/nvim/lua/dyamon/zettel.lua b/neovim/.config/nvim/lua/dyamon/zettel.lua index 7a10da5..ee7b8a9 100644 --- a/neovim/.config/nvim/lua/dyamon/zettel.lua +++ b/neovim/.config/nvim/lua/dyamon/zettel.lua @@ -179,8 +179,7 @@ function zettel.live_grep(mappings) -- Search in zettelkasten cwd = base, -- Do not search recursively - -- Note that this assumes `rg` is available in the system - find_command = { 'rg', '--files', '--glob', '/*.md' }, + glob_pattern = '/*.md', -- Additional mappings attach_mappings = function(prompt_bufnr, map) map('i', '', yank_and_insert(false)) -- cgit v1.2.3