Git Product home page Git Product logo

Comments (5)

monkoose avatar monkoose commented on August 11, 2024

Can't reproduce it. I think VimEnter autocmd doesn't invoke. The reason i suppose is because plugin required after this autocmd.
Can you add something like autocmd VimEnter * echom 'hello' somewhere in the autocmds string?

autocmd WinEnter,BufWinEnter,FileType,VimEnter * lua require'matchparen.matchpairs'.create()
autocmd CursorMoved,CursorMovedI,WinEnter * lua require'matchparen.highlight'.update()
autocmd InsertEnter * lua require'matchparen.highlight'.update(true)
autocmd TextChanged,TextChangedI * lua require'matchparen.highlight'.update_on_tick()
autocmd WinLeave,BufLeave * lua require'matchparen.highlight'.remove()
autocmd OptionSet matchpairs lua require'matchparen.matchpairs'.create()

Does it print 'hello' into cmdline?

If i remove this line i get the same error as you

autocmd WinEnter,BufWinEnter,FileType,VimEnter * lua require'matchparen.matchpairs'.create()

from matchparen.nvim.

jebaum avatar jebaum commented on August 11, 2024

Interesting, I wonder if the other autocmds in any particular configuration might have an impact. I'll debug with a minimal vimrc later today and try your suggestion as well

from matchparen.nvim.

monkoose avatar monkoose commented on August 11, 2024

Ok. I tested on some different PC with my old config that uses vim-plug instead of packer and it still works fine.

from matchparen.nvim.

monkoose avatar monkoose commented on August 11, 2024

So you haven't fixed this in your config?
Anyway on the second thought I think such kind of plugin should not break your neovim expirience if any error appears. I think it would be better to not highlight brackets at all, than constantly disrupt your editing with some error, that requires you to disable the plugin etc. So i will improve it behavior in a few days (already have some ideas how to do it).

from matchparen.nvim.

monkoose avatar monkoose commented on August 11, 2024

806d15a should partly fix your issue.

from matchparen.nvim.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.