From 7b6db222395eeac91fae9e07ba9327dd0cc45020 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 6 Jan 2022 09:44:13 +0100 Subject: [PATCH] plugins: Add clang format mappings --- plugins-noroot-nolowendbox.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index 443a012..a9fe99c 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -282,4 +282,12 @@ EOF " Do not show diagnostic window of vim-clang let g:clang_diagsopt = '' + augroup ClangFormatSettings + au! + au FileType c,cpp,objc,javascript,java,typescript,protobuf,cuda,vala + \ vmap cf (operator-clang-format) + au FileType c,cpp,objc,javascript,java,typescript,protobuf,cuda,vala + \ nmap cf :ClangFormat + augroup END + endfunction -- 2.39.5