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>
iGor milhit 2023-06-22 15:30:23 +02:00
parent 23af0da4fa
commit 784638e3b7
Signed by: igor
GPG Key ID: 692D97C3D0228A99
3 changed files with 6 additions and 0 deletions

View File

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

View File

@ -4,3 +4,5 @@ Séverine
HEG HEG
neovim neovim
lua lua
InfoBiblio
Réaménagement

Binary file not shown.