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