We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64be2b8 commit b97c8fcCopy full SHA for b97c8fc
autoload/codefmt/jsonnetfmt.vim
@@ -1,5 +1,7 @@
1
let s:plugin = maktaba#plugin#Get('codefmt')
2
3
+let s:SUPPORTED_FILETYPES = ['json', 'jsonnet']
4
+
5
6
""
7
" @private
@@ -14,10 +16,8 @@ function! codefmt#jsonnetfmt#GetFormatter() abort
14
16
return executable(s:plugin.Flag('jsonnetfmt_executable'))
15
17
endfunction
18
- let l:supported_filetypes = ['json', 'jsonnet']
-
19
function l:formatter.AppliesToBuffer() abort
20
- return index(l:supported_filetypes, &filetype) >= 0
+ return index(s:SUPPORTED_FILETYPES, &filetype) >= 0
21
22
23
0 commit comments