From d41ad2f9781169c21a25fae33c8fb4c855d83fd5 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 4 Jun 2023 17:13:31 +0900 Subject: fix(pack): load nvim-cmp on BufEnter * this fixes minor annoyance where you have to enter insert mode multiple times for the cmp to pop up --- fnl/nvrc/pack.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fnl/nvrc') diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl index fea2a8e..079e7e3 100644 --- a/fnl/nvrc/pack.fnl +++ b/fnl/nvrc/pack.fnl @@ -27,7 +27,7 @@ (pack! :tpope/vim-eunuch) (pack! :tpope/vim-sleuth) -(pack! :hrsh7th/nvim-cmp {:req :cmp :event :InsertEnter +(pack! :hrsh7th/nvim-cmp {:req :cmp :event :BufEnter :requires [(pack :L3MON4D3/LuaSnip {:module :luasnip}) (pack :lukas-reineke/cmp-under-comparator {:module :cmp-under-comparator})]}) (pack! :numToStr/Comment.nvim {:module :Comment :init :Comment}) -- cgit 1.4.1