From f24a3ab9744a3f50eb8cacc06d4ef4c5f96875db Mon Sep 17 00:00:00 2001 From: iurii plugatarov Date: Sat, 3 Aug 2024 00:19:11 +0300 Subject: fix --- lua/sketchbook/search_notes.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/sketchbook/search_notes.lua (limited to 'lua/sketchbook/search_notes.lua') diff --git a/lua/sketchbook/search_notes.lua b/lua/sketchbook/search_notes.lua new file mode 100644 index 0000000..152355e --- /dev/null +++ b/lua/sketchbook/search_notes.lua @@ -0,0 +1,10 @@ +local M = {} + +function M.search_notes() + local notes_dir = vim.g.notes_directory or "~/notes/" + require("telescope.builtin").live_grep { + search_dirs = { vim.fn.expand(notes_dir) }, + } +end + +return M -- cgit 1.4.1-2-gfad0