all repos

init.lua @ 01b039901a6f2db846cbcb094367de6b4eb12155

my nvim config
2 files changed, 0 insertions(+), 118 deletions(-)
refactor: remove orgmode setup

- Overtime I found orgmode more annoying then useful, i still liked it tho
- Might revert later :)
Author: Olexandr Smirnov olexsmir@gmail.com
Committed at: 2025-07-08 13:12:45 +0300
Parent: 9abdcca
M lazy-lock.json

@@ -30,8 +30,6 @@ "nvim-treesitter-endwise": { "branch": "master", "commit": "d6cbb83307d516ec076d17c9a33d704ef626ee8c" },

"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" }, "nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" }, "oil.nvim": { "branch": "master", "commit": "975a77cce3c8cb742bc1b3629f4328f5ca977dad" }, - "org-bullets.nvim": { "branch": "main", "commit": "21437cfa99c70f2c18977bffd423f912a7b832ea" }, - "orgmode": { "branch": "master", "commit": "b0c9896bfcfb4815ea53f73a7da1a62c5c28efa3" }, "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, "schemastore.nvim": { "branch": "main", "commit": "45fd6c22f30487586c771072dc8c5230931e4c7b" }, "snacks.nvim": { "branch": "main", "commit": "5eac729fa290248acfe10916d92a5ed5e5c0f9ed" },
D

@@ -1,116 +0,0 @@

-local u = require "core.utils" -local orgdir = "~/org/" - ----@param p string ----@param not_file? boolean ----@return string -local function orgpath(p, not_file) - return vim.fs.joinpath(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 {}) - end -end - --- remove ugly background for folded text -local group = u.augroup "orgmode" -local pattern = { "*.org", "*.org_archive" } -u.aucmd({ "BufEnter", "BufWinEnter" }, { - command = "highlight Folded guibg=NONE", - pattern = pattern, - group = group, -}) - -u.aucmd({ "BufLeave", "BufWinLeave" }, { - command = "highlight Folded guibg=#3b4261", -- the color from tokyonight - pattern = pattern, - group = group, -}) - ----@type LazySpec -return { - "nvim-orgmode/orgmode", - ft = "org", - cmd = "Org", - keys = { - "<leader>o", - { "<leader>oo", ("<cmd>e " .. orgpath "refile" .. "<CR>") }, - { "<leader>oc", action "capture.prompt" }, - { "<leader>oa", action "agenda.prompt" }, - }, - dependencies = { - { "akinsho/org-bullets.nvim", config = true }, - }, - ---@module "orgmode" - ---@type OrgConfigOpts - ---@diagnostic disable-next-line: missing-fields - opts = { - org_default_notes_file = orgpath "refile", - org_agenda_files = orgpath("**/*", true), - -- stylua: ignore - org_todo_keywords = { "TODO(t)", "INB", "DOING(p)" , "|", "DONE(d)", "KILL(k)",}, - org_hide_emphasis_markers = true, - org_startup_indented = true, - org_startup_folded = "content", - org_ellipsis = "\t\t[ยทยทยท]", - org_priority_highest = "A", - org_priority_lowest = "D", - org_priority_default = "D", - mappings = { - prefix = "<leader>o", - agenda = { - org_agenda_filter = "<leader>/", - }, - org = { - org_open_at_point = "<CR>", - org_return = nil, - org_export = nil, - }, - global = { - org_agenda = nil, - org_capture = nil, - }, - }, - org_capture_templates = { - t = { - description = "Task", - template = "* TODO %?", - target = orgpath "personal", - }, - i = { description = "Inbox", template = "* %?" }, - w = { - description = "New vocab", - template = "* %?", - headline = "new vocab", - }, - }, - org_agenda_custom_commands = { - p = { - description = "Personal", - types = { - { - type = "tags_todo", - match = "-goals-prj", - org_agenda_overriding_header = "Personal todos", - org_agenda_files = { orgpath "todo", orgpath "personal" }, - org_agenda_sorting_strategy = { "priority-down", "todo-state-down" }, - }, - }, - }, - n = { - description = "Next action", - types = { - { - type = "tags_todo", - match = "next", - org_agenda_overriding_header = "Next action", - }, - }, - }, - }, - }, -}