mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
auto-config: set completeopt only if it's the default
The setting is also moved from "ftplugin" to "plugin", which allows for easier customization, e.g. via a FileType plugin. Ref: https://github.com/davidhalter/jedi-vim/issues/374#issuecomment-97621368
This commit is contained in:
@@ -38,10 +38,3 @@ if g:jedi#auto_initialization
|
||||
autocmd InsertLeave <buffer> if pumvisible() == 0|pclose|endif
|
||||
endif
|
||||
endif
|
||||
|
||||
if g:jedi#auto_vim_configuration
|
||||
setlocal completeopt=menuone,longest,preview
|
||||
if len(mapcheck('<C-c>', 'i')) == 0
|
||||
inoremap <C-c> <ESC>
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user