Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions autoload/vimtex/options.vim
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function! vimtex#options#init() abort " {{{1
\ 'server': 'no',
\ 'shell_options': '',
\ 'show_suggestions': 0,
\ 'encoding': 'auto',
\})

call s:init_option('vimtex_imaps_enabled', 1)
Expand Down
3 changes: 3 additions & 0 deletions compiler/vlty.vim
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ let &l:makeprg =
\ . (s:vlty.server ==# 'no'
\ ? ''
\ : ' --server ' . s:vlty.server)
\ . ' --encoding ' . (s:vlty.encoding ==# 'auto'
\ ? (empty(&l:fileencoding) ? &l:encoding : &l:fileencoding)
\ : s:vlty.encoding)
\ . ' --language ' . s:language
\ . ' --disable "' . s:vlty.lt_disable . '"'
\ . ' --enable "' . s:vlty.lt_enable . '"'
Expand Down
13 changes: 10 additions & 3 deletions doc/vimtex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1628,8 +1628,9 @@ OPTIONS *vimtex-options*
\}

*g:vimtex_grammar_vlty*
This option is used to configure the `vlty` grammar checker. It is a dictionary
with the following keys (see |vimtex-grammar-vlty| for more details):
This option is used to configure the `vlty` grammar checker. It is a
dictionary with the following keys (see |vimtex-grammar-vlty| for more
details):

lt_directory~
Path to the `LanguageTool` software, if installed manually.
Expand All @@ -1651,7 +1652,8 @@ OPTIONS *vimtex-options*
short texts. Possible values are:

`no` Do not use a server.
`my` Use a local `LanguageTool` server. If not yet running, it is started.
`my` Use a local `LanguageTool` server. If not yet running, it is
started.
`lt` Contact the Web server provided by `LanguageTool`. In this case,
no local installation is necessary. Please see the following page
for conditions and restrictions:
Expand All @@ -1666,6 +1668,10 @@ OPTIONS *vimtex-options*
If set to 1, then `LanguageTool's` replacement suggestions are included
in the |quickfix| or |location-list| messages.

encoding~
Encoding of the (La)TeX source file. For default value `auto`, the
encoding is taken from |fileencoding| or |encoding|.

Default: >

let g:vimtex_grammar_vlty = {
Expand All @@ -1678,6 +1684,7 @@ OPTIONS *vimtex-options*
\ 'server': 'no',
\ 'shell_options': '',
\ 'show_suggestions': 0,
\ 'encoding': 'auto',
\}

*g:vimtex_imaps_enabled*
Expand Down