all repos

init.lua @ 63f78dc

my nvim config
1 files changed, 18 insertions(+), 1 deletions(-)
feat(orgmode): disable Folded highlighting in org files
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-03-10 00:26:47 +0200
Parent: 79f0128
M lua/plugins/orgmode.lua

@@ -1,3 +1,4 @@

+local u = require "core.utils" local h = require("hidden").org local orgdir = "~/org/"

@@ -16,6 +17,21 @@ 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",

@@ -36,7 +52,7 @@ ---@module "org-roam"

---@type org-roam.config.Data opts = { directory = orgpath("roam", true), - org_files = { orgpath "refile", orgpath "life" }, + org_files = { orgpath "refile", orgpath "personal" }, bindings = { prefix = "<leader>r", find_node = "<prefix>s",

@@ -91,6 +107,7 @@ org_todo_keywords = { "TODO(t)", "WAIT(w)", "DOING(p)" , "|", "DONE(d)", "KILL(k)",},

org_hide_emphasis_markers = true, org_startup_indented = true, org_startup_folded = "content", -- "showeverything" + org_ellipsis = "\t\t[ยทยทยท]", mappings = { prefix = "<leader>o", org = {