diff options
Diffstat (limited to 'lua/search_notes.lua')
-rw-r--r-- | lua/search_notes.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/search_notes.lua b/lua/search_notes.lua new file mode 100644 index 0000000..152355e --- /dev/null +++ b/lua/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 |