From c07d1ff7a82fa649b128fe0bba31a6a0578dd5bf Mon Sep 17 00:00:00 2001 From: Dennis Chan Date: Fri, 25 Apr 2025 17:54:42 +0800 Subject: [PATCH] move copilot chat and oil plugins to custom --- init.lua | 29 ----------------------------- lua/custom/plugins/init.lua | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 30 deletions(-) diff --git a/init.lua b/init.lua index 4ecb710b..e0fb4f58 100644 --- a/init.lua +++ b/init.lua @@ -815,35 +815,6 @@ require('lazy').setup({ -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, - -- File Explorer - { - 'stevearc/oil.nvim', - ---@module 'oil' - ---@type oil.SetupOpts - opts = { - default_file_explorer = true, - }, - -- Optional dependencies - dependencies = { { 'echasnovski/mini.icons', opts = {} } }, - -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons - -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations. - lazy = false, - }, - - -- GitHub Copilot Chat - { - 'CopilotC-Nvim/CopilotChat.nvim', - dependencies = { - { 'github/copilot.vim' }, -- or zbirenbaum/copilot.lua - { 'nvim-lua/plenary.nvim', branch = 'master' }, -- for curl, log and async functions - }, - build = 'make tiktoken', -- Only on MacOS or Linux - opts = { - -- See Configuration section for options - }, - -- See Commands section for default commands if you want to lazy load on them - }, - { -- Collection of various small independent plugins/modules 'echasnovski/mini.nvim', config = function() diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 958e1477..30447687 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -1,4 +1,5 @@ -return { -- Git Blame Plugin +return { + -- Git Blame Plugin { 'f-person/git-blame.nvim', -- load the plugin at startup @@ -16,4 +17,36 @@ return { -- Git Blame Plugin virtual_text_column = 1, -- virtual text start column, check Start virtual text at column section for more options }, }, + + -- File Explorer + { + 'stevearc/oil.nvim', + ---@module 'oil' + ---@type oil.SetupOpts + opts = { + default_file_explorer = true, + view_options = { + show_hidden = true, + }, + }, + -- Optional dependencies + dependencies = { { 'echasnovski/mini.icons', opts = {} } }, + -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons + -- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations. + lazy = false, + }, + + -- GitHub Copilot Chat + { + 'CopilotC-Nvim/CopilotChat.nvim', + dependencies = { + { 'github/copilot.vim' }, -- or zbirenbaum/copilot.lua + { 'nvim-lua/plenary.nvim', branch = 'master' }, -- for curl, log and async functions + }, + build = 'make tiktoken', -- Only on MacOS or Linux + opts = { + -- See Configuration section for options + }, + -- See Commands section for default commands if you want to lazy load on them + }, }