[nvim] fix comments and commentstring options in the nginx filetype

This commit is contained in:
Dmytro Meleshko 2020-11-09 13:43:23 +02:00
parent 265eaa565b
commit ef1bd7fa6a
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
" Guess what. The `syntax/jinja.vim` script for the jinja templating language,
" which is not included in neither Vim's runtime, nor Neovim's runtime, nor in
" vim-polyglot (so the only way to get it is to install the python package) is
" sourced in `syntax/nginx.vim` in vim-polyglot, which resets the `commentstring`
" set in `ftplugin/nginx.vim` and sets `comments` to some garbage. This script
" undoes that damage.
let &l:comments = &g:comments
let &l:commentstring = '# %s'