-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Objective C++ (#481)
Add definition for Objective C++ files for uncrustify, clang-format and astyle
- Loading branch information
1 parent
51f0eef
commit e5fe7e8
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
function! neoformat#formatters#objcpp#enabled() abort | ||
return ['uncrustify', 'clangformat', 'astyle'] | ||
endfunction | ||
|
||
function! neoformat#formatters#objcpp#uncrustify() abort | ||
return { | ||
\ 'exe': 'uncrustify', | ||
\ 'args': ['-q', '-l OC+'], | ||
\ 'stdin': 1, | ||
\ } | ||
endfunction | ||
|
||
function! neoformat#formatters#objcpp#clangformat() abort | ||
return neoformat#formatters#c#clangformat() | ||
endfunction | ||
|
||
function! neoformat#formatters#objcpp#astyle() abort | ||
return neoformat#formatters#c#astyle() | ||
endfunction | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters