Add ktlint fixer support.

This commit is contained in:
Michael Phillips
2019-01-19 01:39:06 -06:00
parent d1fc084b2d
commit bd1e639681
8 changed files with 135 additions and 47 deletions
+5
View File
@@ -270,6 +270,11 @@ let s:default_registry = {
\ 'suggested_filetypes': ['hcl', 'terraform'],
\ 'description': 'Fix tf and hcl files with terraform fmt.',
\ },
\ 'ktlint': {
\ 'function': 'ale#fixers#ktlint#Fix',
\ 'suggested_filetypes': ['kt'],
\ 'description': 'Fix Kotlin files with ktlint.',
\ },
\}
" Reset the function registry to the default entries.