cmp-nvim-lsp-document-symbol
nvim-cmp source for textDocument/documentSymbol via nvim-lsp.
The purpose is the demonstration customize /
search by nvim-cmp.
Kapture.2021-10-28.at.01.48.45.mp4
Setup
require'cmp'.setup.cmdline('/', {
sources = cmp.config.sources({
{ name = 'nvim_lsp_document_symbol' }
}, {
{ name = 'buffer' }
})
})