Latex highlighting does not apply to start buffer

オープン
#1,014 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
lua
領域
devtools

調査の方向性

報告された orgmode.setup 設定と Neovim v0.11.3 で問題を再現し、最初の org バッファの起動時と、その後のリフレッシュまたはアジェンダバッファに焦点を当てます。初期バッファ設定中に org_highlight_latex_and_related がどこで適用されるかを追跡します。最初に開いた org バッファで、リフレッシュや別のバッファを開くことなく LaTeX のハイライトが表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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" },
      },
    },
  },
Versions

nvim v0.11.3

主要言語
Lua
スター
3.9k
フォーク
193
平均マージ
21時間 29分
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nvim-orgmode/orgmode のほかの issue

nvim-orgmode/orgmode の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。