chg: Properly lazyload nvim-cmp related plugins

This commit is contained in:
Sayantan Santra 2024-03-23 03:36:19 -05:00
parent 810e9ce16c
commit 2fedf661e7
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F
3 changed files with 31 additions and 16 deletions

View file

@ -28,12 +28,17 @@ require("lazy").setup({
-- LSP related plugins
"neovim/nvim-lspconfig",
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp", -- For LSP completion
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-omni", -- For LaTeX completion
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
{
"hrsh7th/nvim-cmp", -- For LSP completion
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-omni", -- For LaTeX completion
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
}
},
"SirVer/ultisnips", -- For snippets
-- Support programming terms
{ "psliwka/vim-dirtytalk", build = ":DirtytalkUpdate" },

View file

@ -25,11 +25,16 @@ require("lazy").setup({
"sitiom/nvim-numbertoggle",
-- LSP related plugins
"neovim/nvim-lspconfig",
"hrsh7th/nvim-cmp", -- For LSP completion
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-cmdline",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
{
"hrsh7th/nvim-cmp", -- For LSP completion
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-cmdline",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
}
},
-- Support programming terms
{ "psliwka/vim-dirtytalk", build = ":DirtytalkUpdate" },
-- vim-moonfly theme

View file

@ -25,11 +25,16 @@ require("lazy").setup({
"sitiom/nvim-numbertoggle",
-- LSP related plugins
"neovim/nvim-lspconfig",
"hrsh7th/nvim-cmp", -- For LSP completion
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
{
"hrsh7th/nvim-cmp", -- For LSP completion
event = "InsertLeave",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
}
},
-- Support programming terms
{ "psliwka/vim-dirtytalk", build = ":DirtytalkUpdate" },
-- vim-moonfly theme