From 42a65db0334ea603cbe24f29898e62a9fdda678e Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sat, 18 Jul 2020 16:36:17 +0200 Subject: C++ friendly ftplugin --- nvim/nvim/ftplugin/c.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nvim') diff --git a/nvim/nvim/ftplugin/c.vim b/nvim/nvim/ftplugin/c.vim index ce42c00..dba313b 100644 --- a/nvim/nvim/ftplugin/c.vim +++ b/nvim/nvim/ftplugin/c.vim @@ -1,2 +1,5 @@ setlocal foldmethod=syntax -setlocal syntax=c.doxygen + +if b:current_syntax ==? "c" + setlocal syntax=c.doxygen +endif -- cgit v1.2.3