cmp-cmdline icon indicating copy to clipboard operation
cmp-cmdline copied to clipboard

Does not work with `sort /searchstring/` command

Open David-Else opened this issue 3 years ago • 0 comments

random document:

hello everyone
goodbye
hello nobody
:sort /he

the screen starts to highlight hello but I get no autocompletion

:sort /hello/

correctly sorts by the string hello

cmp.setup {
  sources = {
    { name = 'nvim_lsp' },
    { name = 'nvim_lsp_signature_help' },
    { name = 'path' },
    { name = 'buffer', keyword_length = 4 },
  },
}

cmp.setup.cmdline('/', {
  sources = {
    { name = 'buffer', keyword_length = 4 },
  },
})

cmp.setup.cmdline(':', {
  sources = cmp.config.sources({
    { name = 'path' },
  }, {
    { name = 'cmdline' },
  }),
})

David-Else avatar Mar 09 '22 17:03 David-Else