mirror of
https://github.com/amix/vimrc
synced 2025-08-07 22:35:01 +08:00
Added missing commits
This commit is contained in:
18
sources_non_forked/ale/autoload/ale/fixers/cmakeformat.vim
Normal file
18
sources_non_forked/ale/autoload/ale/fixers/cmakeformat.vim
Normal file
@ -0,0 +1,18 @@
|
||||
" Author: Attila Maczak <attila@maczak.hu>
|
||||
" Description: Integration of cmakeformat with ALE.
|
||||
|
||||
call ale#Set('cmake_cmakeformat_executable', 'cmake-format')
|
||||
call ale#Set('cmake_cmakeformat_options', '')
|
||||
|
||||
function! ale#fixers#cmakeformat#Fix(buffer) abort
|
||||
let l:executable = ale#Var(a:buffer, 'cmake_cmakeformat_executable')
|
||||
let l:options = ale#Var(a:buffer, 'cmake_cmakeformat_options')
|
||||
|
||||
return {
|
||||
\ 'command': ale#Escape(l:executable)
|
||||
\ . ' -i '
|
||||
\ . (empty(l:options) ? '' : ' ' . l:options)
|
||||
\ . ' %t',
|
||||
\ 'read_temporary_file': 1,
|
||||
\}
|
||||
endfunction
|
9
sources_non_forked/ale/autoload/ale/fixers/ktlint.vim
Normal file
9
sources_non_forked/ale/autoload/ale/fixers/ktlint.vim
Normal file
@ -0,0 +1,9 @@
|
||||
" Author: Michael Phillips <michaeljoelphillips@gmail.com>
|
||||
" Description: Fix Kotlin files with ktlint.
|
||||
|
||||
function! ale#fixers#ktlint#Fix(buffer) abort
|
||||
return {
|
||||
\ 'command': ale#handlers#ktlint#GetCommand(a:buffer) . ' --format',
|
||||
\ 'read_temporary_file': 1,
|
||||
\}
|
||||
endfunction
|
15
sources_non_forked/ale/autoload/ale/fixers/textlint.vim
Normal file
15
sources_non_forked/ale/autoload/ale/fixers/textlint.vim
Normal file
@ -0,0 +1,15 @@
|
||||
" Author: TANIGUCHI Masaya <ta2gch@gmail.com>
|
||||
" Description: Integration of textlint with ALE.
|
||||
|
||||
function! ale#fixers#textlint#Fix(buffer) abort
|
||||
let l:executable = ale#handlers#textlint#GetExecutable(a:buffer)
|
||||
let l:options = ale#Var(a:buffer, 'textlint_options')
|
||||
|
||||
return {
|
||||
\ 'command': ale#Escape(l:executable)
|
||||
\ . ' --fix'
|
||||
\ . (empty(l:options) ? '' : ' ' . l:options)
|
||||
\ . ' %t',
|
||||
\ 'read_temporary_file': 1,
|
||||
\}
|
||||
endfunction
|
Reference in New Issue
Block a user