1
0
Fork 0

nvim: add LSP documentSymbol completion

This commit is contained in:
tastytea 2022-09-09 06:00:48 +02:00
parent 2a61b2098a
commit af3fb23c25
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 6 additions and 3 deletions

View File

@ -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 ':'

View File

@ -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'
}
}