completion: add completion for text in the buffer
- Adds completion capabilities for text (in the current buffer), with the help of `cmp-buffer`). - Expand the French dictionnary. Co-Authored-by: iGor milhit <igor@milhit.ch>
parent
c2fdfafae4
commit
4604bf5925
4
init.lua
4
init.lua
|
@ -106,6 +106,9 @@ require('lazy').setup({
|
||||||
-- Adds LSP completion capabilities
|
-- Adds LSP completion capabilities
|
||||||
'hrsh7th/cmp-nvim-lsp',
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
|
|
||||||
|
-- Adds completion capabilities for text in buffers
|
||||||
|
'hrsh7th/cmp-buffer',
|
||||||
|
|
||||||
-- Adds path completion capabilities
|
-- Adds path completion capabilities
|
||||||
'hrsh7th/cmp-path',
|
'hrsh7th/cmp-path',
|
||||||
|
|
||||||
|
@ -585,6 +588,7 @@ cmp.setup {
|
||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
|
{ name = 'buffer' },
|
||||||
{ name = 'luasnip' },
|
{ name = 'luasnip' },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,3 +4,5 @@ Séverine
|
||||||
HEG
|
HEG
|
||||||
neovim
|
neovim
|
||||||
lua
|
lua
|
||||||
|
InfoBiblio
|
||||||
|
Réaménagement
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue