Wed, 25 Sep 2024 15:03:13 -0500
No LSP autostart when read-only
I think nvim actually threw out 'view' argc detection, I just use -R and alias
view to it.
659 | 1 | if exists("current_compiler") |
2 | finish | |
3 | endif | |
4 | let current_compiler = "vale" | |
5 | ||
6 | if exists(":CompilerSet") != 2 | |
7 | command -nargs=* CompilerSet setlocal <args> | |
8 | endif | |
9 | ||
10 | let s:savecpo = &cpo | |
11 | set cpo&vim | |
12 | ||
13 | CompilerSet makeprg=vale\ --output=line\ % | |
14 | ||
15 | let &cpo = s:savecpo | |
16 | unlet s:savecpo |