hrsh7th / cmp-cmdline

nvim-cmp source for vim's cmdline
MIT License
533 stars 40 forks source link

keyword_length ignored #10

Closed ranebrown closed 2 years ago

ranebrown commented 2 years ago

It seems that keyword_length is ignored (or misinterpreted) when using a mapping to change buffers.

  1. Set keyword_length = 3
  2. Set mappings below
  3. Open 2 files
  4. <leader>n to switch to next buffer
  5. : and completion appears immediately

Using :bn and then : uses the set keyword_length prior to triggering completion as expected.

nnoremap <silent> <leader>n :bnext<CR>     
nnoremap <silent> <leader>p :bprevious<CR> 
hrsh7th commented 2 years ago

I think it already fixed by nvim-cmp's side.

ranebrown commented 2 years ago

I'm still seeing the issue after updating.

hrsh7th commented 2 years ago

sorry. I don't understand the problem. (I thought this issue was fixed, but apparently it still remains, so please explain the issue.)

hrsh7th commented 2 years ago

I'm organizing issues. I'm closing this for now. Feel free to re-open it.