sbdchd / neoformat

:sparkles: A (Neo)vim plugin for formatting code.
BSD 2-Clause "Simplified" License
1.99k stars 189 forks source link

latexindent error. #365

Closed pittcat closed 3 years ago

pittcat commented 3 years ago

Error log:

Neoformat: ['\begin{center}', '^I\begin{Large}', '^I^I\bf Big Text', '^I\end{Large}', '\end{center│~                                                                                                
}']                                                                                               │~                                                                                                
Neoformat: latexindent -g /dev/stderr 2>/dev/null 2>                                              │~                                                                                                
Neoformat: using stdin                                                                            │~                                                                                                
Neoformat: ['zsh:1: parse error near `>''']                                                       │~                                                                                                
Neoformat: [0]                                                                                    │~                                                                                                
Neoformat: 1                                                                                      │~                                                                                                
Neoformat: 1                                                                                      │~                                                                                                
Neoformat: trying next formatter                                                                  │~                                                                                                
Neoformat: formatters latexindent failed to run    

After changing the tex format source code:

function! neoformat#formatters#tex#latexindent() abort
    return {
        \ 'exe': 'latexindent',
        \ 'stdin': 1,
        \ }
endfunction

the bug is fixed.