-
I notice that the init script has this line: local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) Where the capabilities are used by another plugin, nvim-lspconfig. So to make this work, I had to load this before nvim-lspconfig, which is itself not lazy-loaded. However, I want to lazy-loaded this plugin to event InsertEnter. So, is there a workaround? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Is lazy loading nvim-cmp really worth it? You'll be entering the insert mode in 99% of editing sessions. I have also measured the execution times of the |
Beta Was this translation helpful? Give feedback.
-
You can try adding this to the use {
'neovim/nvim-lspconfig',
after = { 'nvim-cmp' },
event = { 'BufRead', 'BufNewFile', 'InsertEnter' },
} |
Beta Was this translation helpful? Give feedback.
You can try adding this to the
nvim-lspconfig
use block: