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

Deactivating delimiters indentation seems to be no more possible. #2347

Closed
PatrBal opened this issue Mar 4, 2022 · 3 comments
Closed

Deactivating delimiters indentation seems to be no more possible. #2347

PatrBal opened this issue Mar 4, 2022 · 3 comments
Labels

Comments

@PatrBal
Copy link
Contributor

PatrBal commented Mar 4, 2022

Description

I have had the following line in my .vimrc for years
let g:vimtex_indent_delims = {'include_modified_math': 0, 'close_indented': 0, 'open': [], 'close': []}
in order to deactivate delimiters indentation in LaTeX. It has broken recently.
Now, whenever a closed brace '}' is typed in a .tex file, vim (but the same is true with neovim) gets frozen, and nothing can be typed anymore.
If the above line is commented out in the .vimrc file (or, simply, the 'open' and 'close' entries are removed), everything runs smoothly, but braces induce indentation in LaTeX files.

Steps to reproduce

  1. Add the following line at the end of minimal.vim
    let g:vimtex_indent_delims = {'include_modified_math': 0, 'close_indented': 0, 'open': [], 'close': []}
  2. Run
    nvim -u minimal.vim minimal.tex
  3. Type 'A}' in normal mode

Expected behavior

A closing brace ‘}' appears at the end of the current line.

Actual behavior

Neovim (but the same is true with vim) is frozen.

Do you use a latexmkrc file?

Yes

VimtexInfo

System info:
  OS: macOS 12.2.1 (21D62)
  Vim version: NVIM v0.6.1
  Has clientserver: true
  Servername: /tmp/nvimsocket

VimTeX project: minimal
  base: minimal.tex
  root: /Users/patrick.ballard/Desktop
  tex: /Users/patrick.ballard/Desktop/minimal.tex
  main parser: current file verified
  document class: minimal
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: General
  qf method: LaTeX logfile
@PatrBal PatrBal added the bug label Mar 4, 2022
@lervag
Copy link
Owner

lervag commented Mar 4, 2022

Thanks! This should be fixed now.

@lervag lervag closed this as completed Mar 4, 2022
lervag added a commit that referenced this issue Mar 4, 2022
@PatrBal
Copy link
Contributor Author

PatrBal commented Mar 4, 2022

I confirm. Thanks very much to you for creating and maintaining the wonderful vimtex.

@lervag
Copy link
Owner

lervag commented Mar 5, 2022

Glad you enjoy it :)

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