From 4604bf5925cb607d9e26d4793c067edee2f96635 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Thu, 22 Jun 2023 15:30:23 +0200 Subject: [PATCH] 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 --- init.lua | 4 ++++ spell/en.utf-8.add | 2 ++ spell/en.utf-8.add.spl | Bin 105 -> 184 bytes 3 files changed, 6 insertions(+) diff --git a/init.lua b/init.lua index fe52973..8a7d298 100644 --- a/init.lua +++ b/init.lua @@ -105,6 +105,9 @@ require('lazy').setup({ -- Adds LSP completion capabilities 'hrsh7th/cmp-nvim-lsp', + + -- Adds completion capabilities for text in buffers + 'hrsh7th/cmp-buffer', -- Adds path completion capabilities 'hrsh7th/cmp-path', @@ -585,6 +588,7 @@ cmp.setup { }, sources = { { name = 'nvim_lsp' }, + { name = 'buffer' }, { name = 'luasnip' }, { name = 'path' }, }, diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 796fdcb..ab67d2a 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -4,3 +4,5 @@ Séverine HEG neovim lua +InfoBiblio +Réaménagement diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 99ecb19774e8c686bd4640e5a4716165ffa5e936..9c741af2cf29dc84aa3dfb1dd8f5ebd61bb1b1b7 100644 GIT binary patch literal 184 zcmYjLyAHxI4D?x*VBrH0>QAsT!PbG1?y1z4NNIx7(wX1kJNjYt(ku*qobS$dUERl5 z>)iP#B4Ka3r*%G#2zWz3aBLzh3_Mz>GWF1cs3X&mX{fP)$RSw_gpzO!#Q|#YwLfS3I~XpSk^?*#$~OR-GCny8r+H delta 80 zcmdnNm?;wG>04Zonv-MnpMinFo-HvgBPVa7n4(E3V