2
I downloaded the glsl syntax file and installed it on my computer (a personal folder)
Where did you install the syntax file? Make sure it's located in your ~/.vim/syntax/ directory.
and then added the following auto-load line to my .vimrc:
The :source command is wrong in this context:
au BufNewFile,BufReadPost *.shader,*.frag,*.vert,*.fp,*.vp,*.glsl ...
2
For (1), you need to change the value of g:vim_json_warnings before the syntax file runs, such as in your vimrc.
As you point out, there is a way to force the syntax files to reload on-demand, so you can change the variable and then :edit to have the changes take effect.
1
As far as I can tell the term for that feature is inline diagnostics. I don't see any obvious source (like neovim help) for an answer to how to disable it but I found these two possible solutions:
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
virtual_text = false
}
)
...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
syntax-highlighting × 592vimrc × 52
highlight × 49
colorscheme × 46
vimscript × 39
regular-expression × 37
filetype × 22
filetype-tex × 19
filetype-markdown × 18
conceal × 18
folding × 16
gvim × 14
neovim × 12
terminal × 12
filetype-python × 12
filetype-c × 12
color × 11
spell-checking × 9
filetype-html × 8
filetype-javascript × 8
keyword × 8
plugin-system × 7
comments × 7
autocompletion × 6
microsoft-windows × 6