Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pressing <F8> returns 'Unknown function: vimtex#delim#add_modifiers' #2370

Closed
angryluck opened this issue Apr 8, 2022 · 1 comment
Closed
Labels

Comments

@angryluck
Copy link

angryluck commented Apr 8, 2022

Description

It seems that the function adding modifiers to delimiters (eg \left \right) does not exists. I looked through vimtex/autoload/vimtex/delim.vim, and found the line

nnoremap <silent><buffer> <plug>(vimtex-delim-add-modifiers) 
        \ :<c-u>call vimtex#delim#add_modifiers()<cr>
endfunction

but 'vimtex#delim#add_modifers', or anything close to it is not mentioned anywhere in the file apart from here.

Steps to reproduce

  1. Open a tex-file
  2. Write ()
  3. Press <F8> (or whatever might be bound to (vimtex-delim-add-modifiers) )

Expected behavior

() is changed to \left( \right)

Actual behavior

Commandline states: "Unknown function: vimtex#delim#add_modifiers"

Do you use a latexmkrc file?

No

VimtexInfo

System info:
  OS: Manjaro Linux
  Vim version: VIM 8.2 (1-4464)
  Has clientserver: true
  Servername: undefined (vim started without --servername)

VimTeX project: projectcisinski
  base: projectcisinski.tex
  root: /home/angryluck/Documents/projectBlok3/projectCisinski
  tex: /home/angryluck/Documents/projectBlok3/projectCisinski/projectcisinski.tex
  main parser: latexmain specifier
  document class: article
  packages: amsbsy amsfonts amsgen amsmath amsopn amssymb amstext amsthm babel bbm enumitem epstopdf-base euscript geometry graphics graphicx grfext iftex ifvtex infwarerr inputenc keyval kvdefinekeys kvoptions kvsetkeys ltxcmds pdftexcmds pgf pgfcomp-version-0-65 pgfcomp-version-1-18 pgfcore pgffor pgfkeys pgfmath pgfrcs pgfsys tikz tikz-cd trig xcolor
  source files:
    projectcisinski.tex
    notation.tex
    shs.tex
    kh.tex
    6functor.tex
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: Zathura
    xwin id: 0
  qf method: LaTeX logfile
@angryluck angryluck added the bug label Apr 8, 2022
@angryluck angryluck changed the title Pressing <F8> returns 'Unknown function vimtex#delim#add_modifiers Pressing <F8> returns 'Unknown function vimtex#delim#add_modifiers' Apr 8, 2022
@angryluck angryluck changed the title Pressing <F8> returns 'Unknown function vimtex#delim#add_modifiers' Pressing <F8> returns 'Unknown function: vimtex#delim#add_modifiers' Apr 8, 2022
lervag added a commit that referenced this issue Apr 9, 2022
@lervag
Copy link
Owner

lervag commented Apr 9, 2022

Sorry about that, it was a silly regression bug. Should be fixed now!

@lervag lervag closed this as completed Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants