mirror of
https://github.com/amix/vimrc
synced 2025-07-02 05:05:00 +08:00
Updated plugins
This commit is contained in:
@ -561,7 +561,6 @@ vimrc, and your issues should go away. >
|
||||
|
||||
set completeopt=menu,menuone,preview,noselect,noinsert
|
||||
<
|
||||
|
||||
Or alternatively, if you want to show documentation in popups: >
|
||||
|
||||
set completeopt=menu,menuone,popup,noselect,noinsert
|
||||
@ -3083,6 +3082,7 @@ documented in additional help files.
|
||||
xml.....................................|ale-xml-options|
|
||||
xmllint...............................|ale-xml-xmllint|
|
||||
yaml....................................|ale-yaml-options|
|
||||
circleci..............................|ale-yaml-circleci|
|
||||
prettier..............................|ale-yaml-prettier|
|
||||
spectral..............................|ale-yaml-spectral|
|
||||
swaglint..............................|ale-yaml-swaglint|
|
||||
@ -3734,6 +3734,21 @@ ale#fix#registry#Add(name, func, filetypes, desc, [aliases])
|
||||
ALE will search for fixers in the registry first by `name`, then by their
|
||||
`aliases`.
|
||||
|
||||
For example to register a custom fixer for `luafmt`: >
|
||||
|
||||
function! FormatLua(buffer) abort
|
||||
return {
|
||||
\ 'command': 'luafmt --stdin'
|
||||
\}
|
||||
endfunction
|
||||
|
||||
execute ale#fix#registry#Add('luafmt', 'FormatLua', ['lua'], 'luafmt for lua')
|
||||
|
||||
" You can now use it in g:ale_fixers
|
||||
let g:ale_fixers = {
|
||||
\ 'lua': ['luafmt']
|
||||
}
|
||||
<
|
||||
|
||||
ale#linter#Define(filetype, linter) *ale#linter#Define()*
|
||||
|
||||
|
Reference in New Issue
Block a user