nvim: add LSP documentSymbol completion
This commit is contained in:
parent
2a61b2098a
commit
af3fb23c25
|
@ -71,9 +71,11 @@ if cmp and luasnip then
|
|||
-- Use buffer source for `/`
|
||||
cmp.setup.cmdline('/', {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = {
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp_document_symbol' }
|
||||
}, {
|
||||
{ name = 'buffer' }
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
-- Use cmdline & path source for ':'
|
||||
|
|
|
@ -62,7 +62,8 @@ require('packer').startup({ function(use)
|
|||
},
|
||||
'https://github.com/hrsh7th/cmp-nvim-lua',
|
||||
'https://github.com/uga-rosa/cmp-dictionary',
|
||||
'https://github.com/f3fora/cmp-spell'
|
||||
'https://github.com/f3fora/cmp-spell',
|
||||
'https://github.com/hrsh7th/cmp-nvim-lsp-document-symbol'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue