Move formatexpr config in-tree, out of plugin
Introduces the `format` Python module which provides `clang_format()` and `yapf()` functions which efficiently (compared to vimscript) invoke `clang-format` or `yapf` respectively then apply the minimal number of changes using `difflib.SequenceMatcher`. Additionally, in order to invoke these Python functions add |autoload| functions `format#clang_format()` and `format#yapf()` which can be directly used by the 'formatexpr' setting. Finally, add |ftplugin| files which set 'formatexpr' when the |autoload| functions are available.
This commit is contained in:
3
vimrc
3
vimrc
@@ -59,9 +59,6 @@ let g:ale_cmake_cmakelint_options =
|
||||
" Version control differences in the sign column
|
||||
Pack 'mhinz/vim-signify'
|
||||
|
||||
" format.vim - format with text objects
|
||||
Pack 'git@bitbucket.org:infektor/format.vim.git'
|
||||
|
||||
" vim-textobj-user - library for creating text objects
|
||||
Pack 'kana/vim-textobj-user'
|
||||
" vim-textobj-entire - Entire file text object
|
||||
|
||||
Reference in New Issue
Block a user