aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2023-09-10 22:15:43 +0200
committerjdhao <jdhao@hotmail.com>2023-09-10 22:16:16 +0200
commit7f6627cfa1eab5769299c9f1868a0497c5198188 (patch)
tree5b90fd852e4a6452ed7666f0742fa74dacca287f
parent7ff11a9760fcb7cc122de066528b07b1028f7bce (diff)
update plugin conf for Lazy.nvim
-rw-r--r--lua/plugins.lua26
1 files changed, 20 insertions, 6 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 4a553b9..65ec77d 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -19,12 +19,12 @@ local firenvim_not_active = function()
return not vim.g.started_by_firenvim
end
-require("lazy").setup {
+local plugin_specs = {
-- auto-completion engine
{
"hrsh7th/nvim-cmp",
-- event = 'InsertEnter',
- event = 'VeryLazy',
+ event = "VeryLazy",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"onsails/lspkind-nvim",
@@ -41,7 +41,7 @@ require("lazy").setup {
{
"neovim/nvim-lspconfig",
- event = { 'BufRead', 'BufNewFile' },
+ event = { "BufRead", "BufNewFile" },
config = function()
require("config.lsp")
end,
@@ -152,7 +152,7 @@ require("lazy").setup {
{
"akinsho/bufferline.nvim",
- event = { "BufEnter" } ,
+ event = { "BufEnter" },
cond = firenvim_not_active,
config = function()
require("config.bufferline")
@@ -451,7 +451,10 @@ require("lazy").setup {
},
-- The missing auto-completion for cmdline!
- { "gelguy/wilder.nvim" },
+ {
+ "gelguy/wilder.nvim",
+ build = ":UpdateRemotePlugins",
+ },
-- showing keybindings
{
@@ -480,10 +483,21 @@ require("lazy").setup {
{ "ii14/emmylua-nvim", ft = "lua" },
{
"j-hui/fidget.nvim",
- event = 'VeryLazy',
+ event = "VeryLazy",
tag = "legacy",
config = function()
require("config.fidget-nvim")
end,
},
}
+
+-- configuration for lazy itself.
+local lazy_opts = {
+ ui = {
+ border = "rounded",
+ title = "Plugin Manager",
+ title_pos = "center",
+ },
+}
+
+require("lazy").setup(plugin_specs, lazy_opts)