Add htmlbeautifier support (#4751)

This commit is contained in:
Arash Mousavi authored and GitHub committed 2024-04-17 23:58:28 +09:00
1 parent 6db58b3379
commit 7516e2e484
7 files changed
+53

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
" Author: Arash Mousavi <arash-m>
" Description: Support for HTML Beautifier https://github.com/threedaymonk/htmlbeautifier
call ale#Set('eruby_htmlbeautifier_executable', 'htmlbeautifier')
function! ale#fixers#htmlbeautifier#Fix(buffer) abort
let l:executable = ale#Var(a:buffer, 'eruby_htmlbeautifier_executable')
return {
\ 'command': ale#Escape(l:executable) . ' %t',
\ 'read_temporary_file': 1,
\}
endfunction