1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update plugin conf for Lazy.nvim

This commit is contained in:
jdhao 2023-09-10 22:15:43 +02:00
parent 7ff11a9760
commit 7f6627cfa1

View File

@ -19,12 +19,12 @@ local firenvim_not_active = function()
return not vim.g.started_by_firenvim return not vim.g.started_by_firenvim
end end
require("lazy").setup { local plugin_specs = {
-- auto-completion engine -- auto-completion engine
{ {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
-- event = 'InsertEnter', -- event = 'InsertEnter',
event = 'VeryLazy', event = "VeryLazy",
dependencies = { dependencies = {
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-nvim-lsp",
"onsails/lspkind-nvim", "onsails/lspkind-nvim",
@ -41,7 +41,7 @@ require("lazy").setup {
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
event = { 'BufRead', 'BufNewFile' }, event = { "BufRead", "BufNewFile" },
config = function() config = function()
require("config.lsp") require("config.lsp")
end, end,
@ -152,7 +152,7 @@ require("lazy").setup {
{ {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
event = { "BufEnter" } , event = { "BufEnter" },
cond = firenvim_not_active, cond = firenvim_not_active,
config = function() config = function()
require("config.bufferline") require("config.bufferline")
@ -451,7 +451,10 @@ require("lazy").setup {
}, },
-- The missing auto-completion for cmdline! -- The missing auto-completion for cmdline!
{ "gelguy/wilder.nvim" }, {
"gelguy/wilder.nvim",
build = ":UpdateRemotePlugins",
},
-- showing keybindings -- showing keybindings
{ {
@ -480,10 +483,21 @@ require("lazy").setup {
{ "ii14/emmylua-nvim", ft = "lua" }, { "ii14/emmylua-nvim", ft = "lua" },
{ {
"j-hui/fidget.nvim", "j-hui/fidget.nvim",
event = 'VeryLazy', event = "VeryLazy",
tag = "legacy", tag = "legacy",
config = function() config = function()
require("config.fidget-nvim") require("config.fidget-nvim")
end, end,
}, },
} }
-- configuration for lazy itself.
local lazy_opts = {
ui = {
border = "rounded",
title = "Plugin Manager",
title_pos = "center",
},
}
require("lazy").setup(plugin_specs, lazy_opts)