-- ============================================================================ -- IDEADROP.NVIM: Quick note-taking and idea capture plugin -- ============================================================================ -- A plugin for capturing and organizing ideas/notes within Neovim. -- Supports daily notes, named ideas, tree-based browsing, search -- functionality, and tag-based organization. Integrates with nvim-tree -- for visual browsing of the idea directory. -- -- Key keymaps: -- id - Open today's idea in right buffer -- in - Open named idea in right buffer -- it - Open idea tree browser -- is - Search ideas -- ig - Browse tags -- if - Open today's idea in float -- ============================================================================ -- Get local config (loaded in core/init.lua) local local_cfg = vim.g.cargdev_local or {} -- Skip plugin if IDEA_DIR is not configured if not local_cfg.IDEA_DIR then return {} end return { "CarGDev/ideadrop.nvim", name = "ideaDrop", dependencies = { "nvim-tree/nvim-tree.lua", "nvim-tree/nvim-web-devicons", }, config = function() require("ideaDrop").setup({ idea_dir = vim.g.cargdev_local.IDEA_DIR, }) -- Set up convenient keymaps for ideaDrop vim.keymap.set("n", "id", ":IdeaRight", { desc = "Open today's idea in right buffer" }) vim.keymap.set("n", "in", ":IdeaRight ", { desc = "Open named idea in right buffer" }) vim.keymap.set("n", "it", ":IdeaTree", { desc = "Open idea tree browser" }) vim.keymap.set("n", "is", ":IdeaSearch ", { desc = "Search ideas" }) vim.keymap.set("n", "ig", ":IdeaTags", { desc = "Browse tags" }) vim.keymap.set("n", "if", ":Idea", { desc = "Open today's idea in float" }) -- Optional: Override the default :Idea command to use right buffer instead of float -- Uncomment the line below if you want :Idea to always use the right buffer -- vim.api.nvim_create_user_command("Idea", function(opts) vim.cmd("IdeaRight " .. (opts.args or "")) end, { nargs = "?" }) end, }