diff --git a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua index dbc503d9..c95cf2a7 100644 --- a/dots/.config/nvim/lua/plugins/configs/kanagawa.lua +++ b/dots/.config/nvim/lua/plugins/configs/kanagawa.lua @@ -335,6 +335,8 @@ return { -- For Visual Whitespace plugin { "visual-whitespace", get_hl("Visual", { fg = colors.fujiGray }) }, + -- Better hl for latex fragments in org files + { "texMathZoneX", { fg = colors.surimiOrange }} } if vim.g.neovide then diff --git a/dots/.config/nvim/lua/plugins/configs/org-mode.lua b/dots/.config/nvim/lua/plugins/configs/org-mode.lua index ce5e9617..5c7aa91c 100644 --- a/dots/.config/nvim/lua/plugins/configs/org-mode.lua +++ b/dots/.config/nvim/lua/plugins/configs/org-mode.lua @@ -10,8 +10,7 @@ return { { "o", desc = "> Org" }, }, config = function() - -- Load treesitter grammar for org - require("orgmode").setup_ts_grammar() + require('orgmode').setup_ts_grammar() -- Setup orgmode require("orgmode").setup({ org_agenda_files = { @@ -27,6 +26,7 @@ return { }, org_id_link_to_org_use_id = true, org_default_notes_file = "~/Notes/notes.org", + org_highlight_latex_and_related = "entities", org_agenda_start_day = "-1d", calendar_week_start_day = 0, org_agenda_span = "month", diff --git a/dots/.config/nvim/lua/plugins/configs/treesitter.lua b/dots/.config/nvim/lua/plugins/configs/treesitter.lua index 2aa5cff4..06e5de74 100644 --- a/dots/.config/nvim/lua/plugins/configs/treesitter.lua +++ b/dots/.config/nvim/lua/plugins/configs/treesitter.lua @@ -162,6 +162,7 @@ return { }, highlight = { enable = true, + additional_vim_regex_highlighting = { 'org' }, disable = function(_, buf) local disabled_filetypes = { "tex",