Skip to content

Commit 3f5ddc6

Browse files
authored
clangformat support cuda files (#211)
1 parent 1822415 commit 3f5ddc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/codefmt/clangformat.vim

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ function! codefmt#clangformat#GetFormatter() abort
118118
if &filetype is# 'c' || &filetype is# 'cpp' ||
119119
\ &filetype is# 'proto' || &filetype is# 'javascript' ||
120120
\ &filetype is# 'objc' || &filetype is# 'objcpp' ||
121-
\ &filetype is# 'typescript' || &filetype is# 'arduino'
121+
\ &filetype is# 'typescript' || &filetype is# 'arduino' ||
122+
\ &filetype is# 'cuda'
122123
return 1
123124
endif
124125
" Version 3.6 adds support for java

0 commit comments

Comments
 (0)