From 09cef9c60a20c40fe981e988cac85af0ea24362a Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Sat, 4 Sep 2021 08:06:28 +0700 Subject: [PATCH] neovim: fix luasnip config lazy_load() won't reload snippets when opening a new buffer, and will only load general snippets (ft=all) first --- home/.config/nvim/lua/modules/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.config/nvim/lua/modules/completion.lua b/home/.config/nvim/lua/modules/completion.lua index 3939ff2..fadb8dc 100644 --- a/home/.config/nvim/lua/modules/completion.lua +++ b/home/.config/nvim/lua/modules/completion.lua @@ -129,7 +129,7 @@ function M.snippets_conf() }) -- Loading vscode-like snippets from 'friendly-snippets' - require('luasnip/loaders/from_vscode').lazy_load() + require('luasnip/loaders/from_vscode').load() end function M.coq_conf()