Don't set formatexpr globally, only in specific filetypes
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
if has('pythonx')
|
||||
set formatexpr=format#clang_format()
|
||||
setlocal formatexpr=format#clang_format()
|
||||
endif
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
setlocal matchpairs+=<:>
|
||||
|
||||
if has('pythonx')
|
||||
set formatexpr=format#clang_format()
|
||||
setlocal formatexpr=format#clang_format()
|
||||
endif
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
if has('pythonx')
|
||||
set formatexpr=format#clang_format()
|
||||
setlocal formatexpr=format#clang_format()
|
||||
endif
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
if has('pythonx')
|
||||
set formatexpr=format#clang_format()
|
||||
setlocal formatexpr=format#clang_format()
|
||||
endif
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
if has('pythonx')
|
||||
set formatexpr=format#clang_format()
|
||||
setlocal formatexpr=format#clang_format()
|
||||
endif
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
if has('pythonx')
|
||||
set formatexpr=format#clang_format()
|
||||
setlocal formatexpr=format#clang_format()
|
||||
endif
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
if has('pythonx')
|
||||
set formatexpr=format#clang_format()
|
||||
setlocal formatexpr=format#clang_format()
|
||||
endif
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
if has('pythonx')
|
||||
set formatexpr=format#yapf()
|
||||
setlocal formatexpr=format#yapf()
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user