mirror of
https://github.com/amix/vimrc
synced 2025-08-07 22:35:01 +08:00
Forgot to add the newly created files from the plugin update
This commit is contained in:
15
sources_non_forked/ale/autoload/ale/fixers/bibclean.vim
Normal file
15
sources_non_forked/ale/autoload/ale/fixers/bibclean.vim
Normal file
@ -0,0 +1,15 @@
|
||||
" Author: Horacio Sanson - https://github.com/hsanson
|
||||
" Description: Support for bibclean fixer for BibTeX files.
|
||||
|
||||
call ale#Set('bib_bibclean_executable', 'bibclean')
|
||||
call ale#Set('bib_bibclean_options', '-align-equals')
|
||||
|
||||
function! ale#fixers#bibclean#Fix(buffer) abort
|
||||
let l:options = ale#Var(a:buffer, 'bib_bibclean_options')
|
||||
let l:executable = ale#Var(a:buffer, 'bib_bibclean_executable')
|
||||
|
||||
return {
|
||||
\ 'command': ale#Escape(l:executable)
|
||||
\ . ' ' . (empty(l:options) ? '' : l:options),
|
||||
\}
|
||||
endfunction
|
23
sources_non_forked/ale/autoload/ale/fixers/standardrb.vim
Normal file
23
sources_non_forked/ale/autoload/ale/fixers/standardrb.vim
Normal file
@ -0,0 +1,23 @@
|
||||
" Author: Justin Searls - https://github.com/searls
|
||||
" Description: Fix Ruby files with StandardRB.
|
||||
|
||||
call ale#Set('ruby_standardrb_options', '')
|
||||
call ale#Set('ruby_standardrb_executable', 'standardrb')
|
||||
|
||||
function! ale#fixers#standardrb#GetCommand(buffer) abort
|
||||
let l:executable = ale#Var(a:buffer, 'ruby_standardrb_executable')
|
||||
let l:config = ale#path#FindNearestFile(a:buffer, '.standard.yml')
|
||||
let l:options = ale#Var(a:buffer, 'ruby_standardrb_options')
|
||||
|
||||
return ale#handlers#ruby#EscapeExecutable(l:executable, 'standardrb')
|
||||
\ . (!empty(l:config) ? ' --config ' . ale#Escape(l:config) : '')
|
||||
\ . (!empty(l:options) ? ' ' . l:options : '')
|
||||
\ . ' --fix --force-exclusion %t'
|
||||
endfunction
|
||||
|
||||
function! ale#fixers#standardrb#Fix(buffer) abort
|
||||
return {
|
||||
\ 'command': ale#fixers#standardrb#GetCommand(a:buffer),
|
||||
\ 'read_temporary_file': 1,
|
||||
\}
|
||||
endfunction
|
Reference in New Issue
Block a user