From 29867223813af63522b02c3f510a2f701a1687cf Mon Sep 17 00:00:00 2001 From: computations Date: Tue, 15 Sep 2020 18:58:46 +0200 Subject: [PATCH] Adds support for cuda --- README.md | 2 ++ autoload/neoformat/formatters/cuda.vim | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 autoload/neoformat/formatters/cuda.vim diff --git a/README.md b/README.md index 15123979..4ce85d20 100644 --- a/README.md +++ b/README.md @@ -247,6 +247,8 @@ that caused Neoformat to be invoked. [`prettier`](https://github.com/prettier/prettier) - CSV - [`prettydiff`](https://github.com/prettydiff/prettydiff) +- CUDA + [`clang-format`](http://clang.llvm.org/docs/ClangFormat.html), - D - [`uncrustify`](http://uncrustify.sourceforge.net), [`dfmt`](https://github.com/Hackerpilot/dfmt) diff --git a/autoload/neoformat/formatters/cuda.vim b/autoload/neoformat/formatters/cuda.vim new file mode 100644 index 00000000..849f307f --- /dev/null +++ b/autoload/neoformat/formatters/cuda.vim @@ -0,0 +1,8 @@ +function! neoformat#formatters#cuda#enabled() abort + return ['clangformat'] +endfunction + +function! neoformat#formatters#cuda#clangformat() abort + return neoformat#formatters#c#clangformat() +endfunction +