Skip to content

help: custom syntax persisting despite being removed from configΒ #624

@ricka-hunt

Description

@ricka-hunt

Neovim version (nvim -v)

0.12

Neovim distribution

N/A

Description

I've set myself a few custom syntax functions using the built-in vim.cmd(syntax ARGS)
I've tried removing one of them vim.cmd('syntax match Emdash "β€”" conceal cchar=π–’Š') from my config only to find that it's still active.
I've fiddled with everything, and discovered that disabling render-markdown results in expected behavior, and re-enabling it results in the "Emdash" matchgroup returning from the pale beyond.

What could be the reason for this, and how can I fix it?

Healthcheck output

==============================================================================
render-markdown:                                                            βœ…

render-markdown.nvim [versions] ~
- βœ… OK neovim >= 0.11
- βœ… OK tree-sitter ABI: 15
- βœ… OK plugin: 8.12.0

render-markdown.nvim [configuration] ~
- βœ… OK valid

render-markdown.nvim [tree-sitter markdown] ~
- βœ… OK parser: installed
- βœ… OK ABI: 15
- βœ… OK highlights: ~/.local/share/nvim/site/queries/markdown/highlights.scm
- βœ… OK highlighter: enabled

render-markdown.nvim [tree-sitter markdown_inline] ~
- βœ… OK parser: installed
- βœ… OK ABI: 15
- βœ… OK highlights: ~/.local/share/nvim/site/queries/markdown_inline/highlights.scm

render-markdown.nvim [tree-sitter html] ~
- βœ… OK parser: installed
- βœ… OK ABI: 14

render-markdown.nvim [tree-sitter yaml] ~
- βœ… OK parser: installed
- βœ… OK ABI: 15

render-markdown.nvim [icons] ~
- βœ… OK using: nvim-web-devicons

render-markdown.nvim [conflicts] ~
- βœ… OK headlines: not installed
- βœ… OK markview: not installed
- βœ… OK obsidian: installed but should not conflict

Plugin configuration

vim.g.render_markdown_config = {
  render_modes = true,
  completions = { lsp = { enabled = true } },
  checkbox = {
    checked = { icon = "󰫈", scope_highlight = "RenderMarkdownCheckedItem" },
    unchecked = { icon = "σ°‹™", scope_highlight = nil },
    custom = {
      todo = { raw = "[-]", rendered = "σ°₯”", highlight = "RenderMarkdownTodo" },
      sixth = { raw = "[a]", rendered = "󰫃 ", highlight = "RenderMarkdownBullet" },
      third = { raw = "[b]", rendered = "σ°«„ ", highlight = "RenderMarkdownBullet" },
      half = { raw = "[o]", rendered = "σ°«… ", highlight = "RenderMarkdownBullet" },
      twothirds = { raw = "[d]", rendered = "󰫆 ", highlight = "RenderMarkdownBullet" },
      fivesix = { raw = "[e]", rendered = "󰫇 ", highlight = "RenderMarkdownBullet" },
      ongoing = { raw = "[@]", rendered = "σ°›‘ ", highlight = "AltbgText", scope_highlight = "AltbgText" },
    },
  },
  link = {
    footnote = { superscript = false },
    wiki = { scope_highlight = "RenderMarkdownWikiLinkText" },
  },
  bullet = { icons = { "󰆧" }, right_pad = 0 },
  pipe_table = {
    preset = "round",
    alignment_indicator = "β”ˆ",
  },
  dash = {
    enabled = true,
    render_modes = false,
    icon = "─",
    width = "full",
    left_margin = 0,
  },
  latex = { enabled = false },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions