chg: Properly lazyload nvim-cmp related plugins
This commit is contained in:
parent
810e9ce16c
commit
2fedf661e7
3 changed files with 31 additions and 16 deletions
|
@ -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" },
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue