aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Igne <git@federicoigne.com>2023-04-05 08:37:00 +0200
committerFederico Igne <git@federicoigne.com>2023-04-05 08:37:00 +0200
commit2a75324aa3c524f63704a0b6939c58c2d0b12da3 (patch)
tree17a536a5c4da6678366f80f1a8f8ddf4500a65b2
parent52d898a779bf67c97f65cf7045f37b809f7ae017 (diff)
downloaddotfiles-master.tar.gz
dotfiles-master.zip
[nvim] limit zettelkasten grep to zettelsHEADportedmaster
-rw-r--r--neovim/.config/nvim/lua/dyamon/zettel.lua3
1 files changed, 1 insertions, 2 deletions
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)
179 -- Search in zettelkasten 179 -- Search in zettelkasten
180 cwd = base, 180 cwd = base,
181 -- Do not search recursively 181 -- Do not search recursively
182 -- Note that this assumes `rg` is available in the system 182 glob_pattern = '/*.md',
183 find_command = { 'rg', '--files', '--glob', '/*.md' },
184 -- Additional mappings 183 -- Additional mappings
185 attach_mappings = function(prompt_bufnr, map) 184 attach_mappings = function(prompt_bufnr, map)
186 map('i', '<C-y>', yank_and_insert(false)) 185 map('i', '<C-y>', yank_and_insert(false))