mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-07 20:55:56 +08:00
* Add support for verible: language server + fixer * verible: add default flag, rules support for verible-ls
18 lines
623 B
VimL
18 lines
623 B
VimL
" Author: Nicolas Derumigny <https://github.com/nicolasderumigny>
|
|
" Description: verible formatter for verilog.
|
|
|
|
call ale#Set('verilog_verible_format_executable', 'verible-verilog-format')
|
|
call ale#Set('verilog_verible_format_options', '')
|
|
|
|
function! ale#fixers#verible_format#Fix(buffer) abort
|
|
let l:executable = ale#Escape(ale#Var(a:buffer, 'verilog_verible_format_executable'))
|
|
let l:command = l:executable
|
|
let l:options = ale#Var(a:buffer, 'verilog_verible_format_options')
|
|
|
|
if l:options isnot# ''
|
|
let l:command .= ' ' . l:options
|
|
endif
|
|
|
|
return {'command': l:command . ' -'}
|
|
endfunction
|