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, }, }