about summary refs log tree commit diff
path: root/search_notes.lua
blob: 152355e50d03656c53b663f2e561ffc07f1bfdb6 (plain)
1
2
3
4
5
6
7
8
9
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