Latex highlighting does not apply to start buffer
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the issue with the reported orgmode.setup configuration and Neovim v0.11.3, focusing on startup of the first org buffer and the later refresh or agenda buffer. Trace where org_highlight_latex_and_related is applied during initial buffer setup; done means LaTeX highlighting appears in the first opened org buffer without refreshing or opening another buffer.
Written by the indexing model from the issue text.
Description
I'm new to nvim and im using lazyvim. Can someone help me with this issue I get with getting latex highlighting to work.
Description
I have set org_highligh_latex_and_reelated = 'entities' in my config but everytime I open an org file the first buffer does not get the hhighlighting. Unless I "refresh" the buffer or opening a new buffer via agenda. Then tthe second buffer an onwards get the highhlighting.
Related files
- init.lua:
{
"nvim-orgmode/orgmode",
lazy = true,
config = function()
require("config.extras.orgroam")
end,
},
- config.lua:
orgmode.setup({
ui = ui,
mappings = mappings,
org_highlight_latex_and_related = "entities",
org_custom_exports = custom_exports,
org_todo_keyword_faces = todo_keyword_faces,
org_capture_templates = capture_templates,
org_agenda_files = { "~/notes/**/*" },
org_default_notes_file = "~/notes/capture.org",
org_archive_location = "./log.org::ARCHIVED",
org_log_into_drawer = "LOGBOOK",
org_ellipsis = "",
win_split_mode = "horizontal",
org_hide_leading_stars = false,
org_adapt_indentaion = false,
org_startup_indented = true,
org_id_link_to_org_use_id = true,
org_use_tag_inheritance = true,
org_tags_column = 0,
org_cycle_separator_lines = 0,
org_blank_before_new_entry = { heading = false, plain_list_item = false },
org_todo_keywords = { "TODO(t)", "DOING(d)", "(e)", "PENDING(p)", "|", "PARTIAL(r)", "DONE(f)", "ABORTED(a)" },
org_priority_highest = "A",
org_priority_default = "B",
org_priority_lowest = "F",
org_deadline_warning_days = 0,
org_agenda_custom_commands = {
k = {
description = "Task Agenda",
types = task_agenda,
},
c = {
description = "Document Agenda",
types = doc_agenda,
},
A = {
description = "Combined View",
types = task_doc_agenda,
},
},
})
- Treesitter config:
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"html",
"latex",
"markdown",
"markdown_inline",
"python",
"bash",
"fish",
"vim",
"vimdoc",
"toml",
"yaml",
},
ignore_install = { "org" },
highlight = {
enable = true,
additional_vim_regex_highlighting = { "org" },
},
},
},
- My full config: config
Versions
nvim v0.11.3
- Dominant language
- Lua
- Stars
- 3.9k
- Forks
- 192
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 11
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nvim-orgmode/orgmode
-
Difficulty 1/5 Under an hour Newbie friendliness 73/100
nvim-orgmode/orgmode#1193 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
nvim-orgmode/orgmode#1175 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
nvim-orgmode/orgmode#1173 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 50/100
nvim-orgmode/orgmode#1172 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 62/100
nvim-orgmode/orgmode#1171 ·
Maintainers usually reply within 1 day
All issues in nvim-orgmode/orgmode
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
petertriho/nvim-scrollbar#120 ·
-
Addon Conflict Bug Forever Module - Tracker
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100