feat(nvim): highlight latex entities in org files
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 53s
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 53s
This commit is contained in:
parent
7627e23fc7
commit
c7503065d8
@ -335,6 +335,8 @@ return {
|
|||||||
|
|
||||||
-- For Visual Whitespace plugin
|
-- For Visual Whitespace plugin
|
||||||
{ "visual-whitespace", get_hl("Visual", { fg = colors.fujiGray }) },
|
{ "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
|
if vim.g.neovide then
|
||||||
|
@ -10,8 +10,7 @@ return {
|
|||||||
{ "<leader>o", desc = "> Org" },
|
{ "<leader>o", desc = "> Org" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- Load treesitter grammar for org
|
require('orgmode').setup_ts_grammar()
|
||||||
require("orgmode").setup_ts_grammar()
|
|
||||||
-- Setup orgmode
|
-- Setup orgmode
|
||||||
require("orgmode").setup({
|
require("orgmode").setup({
|
||||||
org_agenda_files = {
|
org_agenda_files = {
|
||||||
@ -27,6 +26,7 @@ return {
|
|||||||
},
|
},
|
||||||
org_id_link_to_org_use_id = true,
|
org_id_link_to_org_use_id = true,
|
||||||
org_default_notes_file = "~/Notes/notes.org",
|
org_default_notes_file = "~/Notes/notes.org",
|
||||||
|
org_highlight_latex_and_related = "entities",
|
||||||
org_agenda_start_day = "-1d",
|
org_agenda_start_day = "-1d",
|
||||||
calendar_week_start_day = 0,
|
calendar_week_start_day = 0,
|
||||||
org_agenda_span = "month",
|
org_agenda_span = "month",
|
||||||
|
@ -162,6 +162,7 @@ return {
|
|||||||
},
|
},
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
additional_vim_regex_highlighting = { 'org' },
|
||||||
disable = function(_, buf)
|
disable = function(_, buf)
|
||||||
local disabled_filetypes = {
|
local disabled_filetypes = {
|
||||||
"tex",
|
"tex",
|
||||||
|
Loading…
Reference in New Issue
Block a user