From b6063211f735e2ec9c118aea6234999b63c7890b Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 27 Sep 2021 16:40:55 +0530 Subject: [PATCH] nvim: plugins: Fix snippets not showing up in completion For some reason without adding the snippets to the runtime path, snippets do now show up in completion. Found the solution here though the issue is on Ultisnips https://github.com/hrsh7th/nvim-cmp/issues/241 --- nvim/.config/nvim/lua/plugins.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 19daf78..c66da66 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -122,9 +122,10 @@ local init = function () 'kshenoy/vim-signature', } -- Snippets + use 'hrsh7th/vim-vsnip' use { 'rafamadriz/friendly-snippets', - 'hrsh7th/vim-vsnip' + rtp = '.' } -- GDB support use 'sakhnik/nvim-gdb'