diff options
author | Adam <adam.moloney.stuck@gmail.com> | 2022-03-18 15:53:37 +0100 |
---|---|---|
committer | adamstuck <adam.moloney.stuck@gmail.com> | 2022-03-18 17:48:01 +0100 |
commit | c72b5230b168e3481b4660b006bb7681c6aa54fa (patch) | |
tree | ab57e4704554a9548b6465c068ac740ea1aec2d5 /.config/nvim/lua/plugins.lua | |
parent | e249ca56974a5b6aa7ad1f194decd6ae216befe2 (diff) |
nvim: better cmp lazy loading, lsp format on save
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, |