mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-08 02:41:05 +08:00
add doc and test
This commit is contained in:
@@ -183,7 +183,7 @@ let s:default_registry = {
|
||||
\ 'fish_indent': {
|
||||
\ 'function': 'ale#fixers#fish_indent#Fix',
|
||||
\ 'suggested_filetypes': ['fish'],
|
||||
\ 'description': 'Fix fish shell scripts with fish_indent.',
|
||||
\ 'description': 'Format fish scripts using fish_indent.',
|
||||
\ },
|
||||
\ 'gofmt': {
|
||||
\ 'function': 'ale#fixers#gofmt#Fix',
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
" Author: Chen YuanYuan <cyyever@outlook.com>
|
||||
" Description: Integration of fish_indent with ALE.
|
||||
|
||||
call ale#Set('fish_indent_executable', 'fish_indent')
|
||||
call ale#Set('fish_indent_options', '')
|
||||
call ale#Set('fish_fishindent_executable', 'fish_indent')
|
||||
call ale#Set('fish_fishindent_options', '')
|
||||
|
||||
function! ale#fixers#fish_indent#Fix(buffer) abort
|
||||
let l:executable = ale#Var(a:buffer, 'fish_indent_executable')
|
||||
let l:options = ale#Var(a:buffer, 'fish_indent_options')
|
||||
let l:executable = ale#Var(a:buffer, 'fish_fishindent_executable')
|
||||
let l:options = ale#Var(a:buffer, 'fish_fishindent_options')
|
||||
let l:filename = ale#Escape(bufname(a:buffer))
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user