about summary refs log tree commit diff
path: root/search_notes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'search_notes.lua')
-rw-r--r--search_notes.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/search_notes.lua b/search_notes.lua
new file mode 100644
index 0000000..152355e
--- /dev/null
+++ b/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