Skip to content

Commit f70ea87

Browse files
committed
added jinja formatting + updated pug formatting
1 parent 3ce811e commit f70ea87

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.editorconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
root = true
2-
31
[*]
42
indent_style = space
53
indent_size = 4
@@ -8,3 +6,6 @@ end_of_line = lf
86
charset = utf-8
97
trim_trailing_whitespace = true
108
insert_final_newline = true
9+
10+
[*.vader]
11+
indent_size = 2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
test/$VADER_OUTPUT_FILE
2+
node_modules/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
function! neoformat#formatters#jinja#enabled()
2+
return ['prettydiff', 'htmlbeautify']
3+
endfunction
4+
5+
function! neoformat#formatters#jinja#htmlbeautify()
6+
return neoformat#formatters#html#htmlbeautify()
7+
endfunction
8+
9+
function! neoformat#formatters#jinja#prettydiff()
10+
return neoformat#formatters#html#prettydiff()
11+
endfunction

autoload/neoformat/formatters/pug.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ endfunction
44

55
function! neoformat#formatters#pug#pugbeautifier()
66
return {
7-
\ 'exe': 'pug-beautifier'
7+
\ 'exe': 'pug-beautifier',
8+
\ 'args': ['-s 2']
89
\ }
910
endfunction

0 commit comments

Comments
 (0)