From 91b4d855921d7fc2f2cbd800f183fde8902b1d39 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 23 Jan 2022 16:47:52 +0800 Subject: [PATCH] change load condition of lspkind-nvim If we use BufEnter, nvim-cmp autocompletion may not work sometimes, which is really annoying --- lua/plugins.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index f9f57c2..686d818 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -31,7 +31,7 @@ require("packer").startup({ use({"wbthomason/packer.nvim", opt = true}) - use {"onsails/lspkind-nvim", event = "BufEnter"} + use({"onsails/lspkind-nvim", event = "VimEnter"}) -- auto-completion engine use {"hrsh7th/nvim-cmp", after = "lspkind-nvim", config = [[require('config.nvim-cmp')]]}