From 8708986e0492c05a4461351bf3a7855dc4dbe0f2 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 25 Sep 2024 15:57:33 -0700 Subject: [PATCH] Fix a bunch of lazy loaded plugins Also does one extra thing, updating copilot chat to build dependencies --- neovim/lua/lazy_plugins.lua | 41 ++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/neovim/lua/lazy_plugins.lua b/neovim/lua/lazy_plugins.lua index e0be1ad..88a16e9 100644 --- a/neovim/lua/lazy_plugins.lua +++ b/neovim/lua/lazy_plugins.lua @@ -16,6 +16,7 @@ return { }), }, }, + lazy = false, }, { "https://github.com/ViViDboarder/wombuddy.nvim", @@ -112,7 +113,7 @@ return { { "gs", "Git", desc = "Git status" }, { "gw", "Git write", desc = "Git write" }, }, - command = { "Git" }, + cmd = { "Git" }, }, -- Quick toggling of Location and Quickfix lists { @@ -195,7 +196,7 @@ return { require("plugins.darknotify") end, dependencies = { { "https://github.com/nvim-lualine/lualine.nvim" } }, - lazy = true, + event = "VeryLazy", }, -- Custom start screen @@ -281,6 +282,14 @@ return { { "https://github.com/neovim/nvim-lspconfig" }, { "https://github.com/williamboman/mason-lspconfig.nvim" }, }, + cmd = { + "Mason", + "MasonInstall", + "MasonLog", + "MasonUninstall", + "MasonUninstallAll", + "MasonUpdate", + }, }, -- Lua dev for vim @@ -391,9 +400,7 @@ return { require("luasnip.loaders.from_vscode").lazy_load() end, dependencies = { - { - "https://github.com/rafamadriz/friendly-snippets", - }, + { "https://github.com/rafamadriz/friendly-snippets" }, }, }, { @@ -589,7 +596,6 @@ return { "SourcegraphSearch", }, enabled = vim.g.install_sourcegraph, - lazy = true, }, { @@ -601,16 +607,37 @@ return { dependencies = { { "https://github.com/tpope/vim-rsi" }, }, - lazy = true, }, { "https://github.com/CopilotC-Nvim/CopilotChat.nvim", enabled = vim.g.install_copilot, branch = "canary", + build = "make tiktoken", + dependencies = { + { "https://github.com/github/copilot.vim" }, + { "https://github.com/nvim-lua/plenary.nvim" }, + }, config = function() require("plugins.copilotchat").setup() end, + keys = { + { "cc", ":echo 'Lazy load copilot chat'", desc = "Load copilot chat" }, + }, + cmd = { + "CopilotChat", + "CopilotChatOpen", + "CopilotChatToggle", + "CopilotChatModels", + "CopilotChatExplain", + "CopilotChatReview", + "CopilotChatOptimize", + "CopilotChatDocs", + "CopilotChatTests", + "CopilotChatFixDiagnostic", + "CopilotChatCommit", + "CopilotChatCommitStaged", + }, lazy = true, }, }