codota / tabnine-vim

Vim client for TabNine. https://vimawesome.com/plugin/tabnine-vim
https://www.tabnine.com/install/vim
GNU General Public License v3.0
671 stars 36 forks source link

How to not block shift-tab unindent? #49

Closed himat closed 3 years ago

himat commented 4 years ago

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside the brackets) before filing your issue:

Thank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.

Issue Details

Provide a clear description of the problem, including the following key questions:

Include steps to reproduce here.

Add inoremap <S-Tab> <C-d> to your .vimrc And add the tabnine-vim plugin to your vim as well

Include description of a minimal test case, including any actual code required to reproduce the issue.

Previously, without the tabnine plugin, I would be able to use <Tab> to indent, and then <S-tab> to unindent (back to the left). I expected this behavior to be the same now with the plugin.

<S-tab> now just behaves like the normal tab, and indents the line forward.

I find this weird only because although tabnine and YCM also use the tab and shift-tab keys for cycling through the autocomplete list, the regular tab key works fine for indenting when a YCM window is not displayed. So I would have expected the shift-tab to work just as normally when a YCM window is not displayed.

So is it possible to fix this breaking my <S-tab> mapping?

Diagnostic data

Output of vim --version

Place the output here, or a link to a gist.

Output of YcmDebugInfo

Place the output here, or a link to a gist.

Contents of YCM, ycmd and completion engine logfiles

Add let g:ycm_log_level = 'debug' to vimrc, restart Vim, reproduce the issue, and include link here to a gist containing the entire logfiles for ycm, ycmd and any completer logfiles listed by :YcmToggleLogs.

OS version, distribution, etc.

Include system information here.

MacOS 10.14.5 Mojave

$ vim --version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 23 2019 20:02:08)
macOS version
Included patches: 1-1200
Compiled by Homebrew
Printing YouCompleteMe debug information...
-- Client logfile: /var/folders/lk/gqfw8vmx5hb02t8v6l0qb5dh0000gn/T/ycm_g536qu4r.log
-- Server errored, no debug info from server
-- Server running at: http://127.0.0.1:55627
-- Server process ID: 71265
-- Server logfiles:
--   /var/folders/lk/gqfw8vmx5hb02t8v6l0qb5dh0000gn/T/ycmd_55627_stdout_8jsshhya.log
--   /var/folders/lk/gqfw8vmx5hb02t8v6l0qb5dh0000gn/T/ycmd_55627_stderr_61fmjt68.log

Output of build/install commands

Include link to a gist containing the invocation and entire output of install.py if reporting an installation issue.