Don't set formatexpr globally, only in specific filetypes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user