Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 04 20:21
    @puremourning banned @dylanusdt:matrix.org
Marcin Kuropatwiński
@mkurop
after <C-v><C-Space> with minimal vimrc there is a beep
I note that after typing initial letters the autocompletion starts working as expected
Boris Staletic
@bstaletic

That last paste shows no <C-Space> or <Nul> maps.

after <C-v><C-Space> with minimal vimrc there is a beep

That sounds like your terminal emulator isn't handling <C-Space> correctly. For testing purposes, try putting something like let g:ycm_key_invoke_completion='q' in your vimrc and try triggering semantic completion with q.

Marcin Kuropatwiński
@mkurop
I tried in space vim your recipe but no luck, this time there is no beep but nothing happens
Boris Staletic
@bstaletic
What about the minimal vimrc? Add the g:ycm_key... line to the minimal vimrc and try that.
Marcin Kuropatwiński
@mkurop
yes I just tried this
here is the output of :verbose imap in minimal vimrc vim
i  <C-Y>       * <SNR>20_StopCompletion( "\<C-Y>" )
        Ostatnie ustawienie przez ~/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/autoload/youcompleteme.vim line 345
i  <Up>        * pumvisible() ? "\<C-P>" : "\<Up>"
        Ostatnie ustawienie przez ~/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/autoload/youcompleteme.vim line 338
i  <S-Tab>     * pumvisible() ? "\<C-P>" : "\<S-Tab>"
        Ostatnie ustawienie przez ~/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/autoload/youcompleteme.vim line 338
i  <Down>      * pumvisible() ? "\<C-N>" : "\<Down>"
        Ostatnie ustawienie przez ~/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/autoload/youcompleteme.vim line 333
i  <Tab>       * pumvisible() ? "\<C-N>" : "\<Tab>"
        Ostatnie ustawienie przez ~/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/autoload/youcompleteme.vim line 333
i  m           * <C-R>=<SNR>20_RequestSemanticCompletion()<CR>
        Ostatnie ustawienie przez ~/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/autoload/youcompleteme.vim line 356
Boris Staletic
@bstaletic
Does m invoke completion, like you expect?
Marcin Kuropatwiński
@mkurop
as you can see I mapped to m, but if I press m it does not invoke autocompletion
Boris Staletic
@bstaletic
What happens if you do <C-v>m?
Does it insert m?
Marcin Kuropatwiński
@mkurop
no, nothing happens
Boris Staletic
@bstaletic
Close vim and type <C-v>m in your console.
Marcin Kuropatwiński
@mkurop
it types m
Boris Staletic
@bstaletic
What about <C-v>j inside vim? Or any other non-mapped character.
Marcin Kuropatwiński
@mkurop
<C-v>j highlights a line as expected in visual mode
Boris Staletic
@bstaletic
Insert mode!
You did try <C-v>m in insert mode too, right?
Marcin Kuropatwiński
@mkurop
no
in insert mode it types m or respectively j
<C-v> alone results in ^ on a blue background
in insert mode of course
in normal mode it switches to block visual mode
Boris Staletic
@bstaletic
Does m, in insert mode, invoke completion?
If you remove the g:ycm_key..., with minimal vimrc, in insert mode, does <C-Space> invoke completion?
Marcin Kuropatwiński
@mkurop
yes, it works now with minimal vimrc
Boris Staletic
@bstaletic
With<C-Space>?
Marcin Kuropatwiński
@mkurop
yes
I try it in spacevim now
in spacevim it works now as expected after mapping <C-Space> to ycm completion
so the problem is solved
two little things
the mapping
and the insert mode
Ben Jackson
@puremourning
oh so this whole time you weren't doing ctrl-space in insert mode? ok that... that explains it ;)
Marcin Kuropatwiński
@mkurop
first I have not mapped C-Space properly in spacevim
I tried in insert mode as well
but after I mapped C-Space in spacevim I tried without insert mode, I was not aware of that insert mode, most commands are invoked in normal mode
in general my search was chaotic since I was not aware of that insert mode
Jonathan Chan Kwan Yin
@SOF3
Is the rust-analyzer dependency outdated?
I'm suffering from this issue rust-analyzer/rust-analyzer#4172
it seems that rust-analyzer has already updated on their side
but I'm still getting the error message of getting unable to find libcore.
cl-ax
@cl-ax
Hi, how can I go to a type's definition with YCM and TypeScript?
Ben Jackson
@puremourning
@SOF3 can you explain the issue you are seeing and how we can reproduce it?
@cl-ax :YcmCompleter GoToDefinition doesn't work ?
Boris Staletic
@bstaletic
There's also :YcmCompleter GoToType.
cl-ax
@cl-ax
I think I was missing the tsuquoyoyi plugin (can't ever remember the name) that gives :TsuTypeDefinition
Boris Staletic
@bstaletic
That's provided by :YcmCompleter GoToType.
cl-ax
@cl-ax
So I don't need Tsuqouqoqy?