Skip to content

Matchup completely stopped working with latex files. #401

@gi1242

Description

@gi1242

As of my update to 81313f1 matchup seems to have completely stopped working in LaTeX files. (It works in other files just fine.)

  1. vim version: NVIM v0.11.3, Build type: RelWithDebInfo, LuaJIT 2.1.1748459687
  2. Fails under both classic and treesitter.
  3. Highlight any environment / brace / parenthesis. % doesn't bounce, nothing is highlighted.

Minimal Working Example

vim.env.LAZY_STDPATH = '.repro'
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

-- Setup lazy.nvim
require("lazy.minit").repro({
  spec = {
    { 'andymass/vim-matchup',
      init = function ()
        vim.g.matchup_matchparen_offscreen = { method = "popup" }
        vim.g.matchup_override_vimtex = 1
      end
    },
    "nvim-treesitter/nvim-treesitter",
  },
})

Edit: To see the bug you also need to TSInstall latex

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions