mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
Silence dot completion mappings
I find the long line that pops up in the command-line whenever I press `.` a bit distracting, and it would potentially overwrite other useful information displayed in there. This change silences the dot completion commands.
This commit is contained in:
@@ -41,13 +41,13 @@ end
|
|||||||
if g:jedi#popup_on_dot
|
if g:jedi#popup_on_dot
|
||||||
if stridx(&completeopt, 'longest') > -1
|
if stridx(&completeopt, 'longest') > -1
|
||||||
if g:jedi#popup_select_first
|
if g:jedi#popup_select_first
|
||||||
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>\<lt>C-N>" : ""<CR>
|
inoremap <silent> <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>\<lt>C-N>" : ""<CR>
|
||||||
else
|
else
|
||||||
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>" : ""<CR>
|
inoremap <silent> <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>" : ""<CR>
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
inoremap <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>\<lt>C-P>" : ""<CR>
|
inoremap <silent> <buffer> . .<C-R>=jedi#do_popup_on_dot() ? "\<lt>C-X>\<lt>C-O>\<lt>C-P>" : ""<CR>
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user