diff options
Diffstat (limited to '.config/nvim/lua/plugins.lua')
-rw-r--r-- | .config/nvim/lua/plugins.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 008cb78..da232d4 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -90,12 +90,12 @@ local plugins = { end }, - -- load luasnips + cmp related in insert mode only + -- load luasnips + cmp related when lsp attaches { "L3MON4D3/LuaSnip", wants = "friendly-snippets", - event = "InsertEnter", + event = "User lspAttached", config = function() require("luasnip/loaders/from_vscode").lazy_load() end, |