feat(nvim): highlight latex entities in org files
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 53s

This commit is contained in:
Price Hiller 2024-03-30 20:17:17 -05:00
parent 7627e23fc7
commit c7503065d8
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -10,8 +10,7 @@ return {
{ "<leader>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",

View File

@ -162,6 +162,7 @@ return {
},
highlight = {
enable = true,
additional_vim_regex_highlighting = { 'org' },
disable = function(_, buf)
local disabled_filetypes = {
"tex",