all repos

init.lua @ c2befd2

my nvim config
1 files changed, 11 insertions(+), 6 deletions(-)
refactor(orgmode): add types, update find command
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-02-19 15:21:44 +0200
Parent: d98fd92
M lua/plugins/orgmode.lua

@@ -1,8 +1,14 @@

local orgdir = "~/org/" + +---@param p string +---@param not_file? boolean +---@return string local function orgpath(p, not_file) return orgdir .. p .. (not not_file and ".org" or "") end +---@param act string +---@param opts? {} local function action(act, opts) return function() return require("orgmode").action(act, opts or {})

@@ -12,14 +18,13 @@

local function find_orgfiles() require("telescope.builtin").find_files { cwd = orgdir, + -- stylua: ignore find_command = { "fd", - "--type", - "f", - "--exclude", - "finance", -- idk why i store my ledger files in the same repo - "--exclude", - "*.org_archive", + "--type", "f", + "--exclude", "finance", -- idk why i store my ledger files in the same repo + "--exclude", "notes", -- i also store notes here now + "--exclude", "*.org_archive", ".org", }, }