Don't set formatexpr globally, only in specific filetypes

This commit is contained in:
Kenneth Benzie 2022-04-14 10:50:31 +01:00
parent fd31549a32
commit 14d34e0b6b
8 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,3 @@
if has('pythonx')
set formatexpr=format#clang_format()
setlocal formatexpr=format#clang_format()
endif

View File

@ -2,5 +2,5 @@
setlocal matchpairs+=<:>
if has('pythonx')
set formatexpr=format#clang_format()
setlocal formatexpr=format#clang_format()
endif

View File

@ -1,3 +1,3 @@
if has('pythonx')
set formatexpr=format#clang_format()
setlocal formatexpr=format#clang_format()
endif

View File

@ -1,3 +1,3 @@
if has('pythonx')
set formatexpr=format#clang_format()
setlocal formatexpr=format#clang_format()
endif

View File

@ -1,3 +1,3 @@
if has('pythonx')
set formatexpr=format#clang_format()
setlocal formatexpr=format#clang_format()
endif

View File

@ -1,3 +1,3 @@
if has('pythonx')
set formatexpr=format#clang_format()
setlocal formatexpr=format#clang_format()
endif

View File

@ -1,3 +1,3 @@
if has('pythonx')
set formatexpr=format#clang_format()
setlocal formatexpr=format#clang_format()
endif

View File

@ -1,3 +1,3 @@
if has('pythonx')
set formatexpr=format#yapf()
setlocal formatexpr=format#yapf()
endif