From 054a77bf9235bbd42624dd762729ff87ae48baf0 Mon Sep 17 00:00:00 2001
From: Alfred Burgess <alfred.burgess95@gmail.com>
Date: Sat, 10 Feb 2024 18:29:37 +0800
Subject: [PATCH] Further plugin splits

---
 lua/plugins.lua               | 62 -----------------------------------
 lua/plugins/alpha-nvim.lua    |  6 ++++
 lua/plugins/barbar.lua        | 10 ++++++
 lua/plugins/catppuccin.lua    |  9 +++++
 lua/plugins/neotree.lua       | 11 +++++++
 lua/plugins/nvim-surround.lua | 10 ++++++
 lua/plugins/telescope.lua     |  4 +++
 lua/plugins/treesitter.lua    |  1 +
 lua/plugins/which-key.lua     |  8 +++++
 9 files changed, 59 insertions(+), 62 deletions(-)
 create mode 100644 lua/plugins/alpha-nvim.lua
 create mode 100644 lua/plugins/barbar.lua
 create mode 100644 lua/plugins/catppuccin.lua
 create mode 100644 lua/plugins/neotree.lua
 create mode 100644 lua/plugins/nvim-surround.lua
 create mode 100644 lua/plugins/telescope.lua
 create mode 100644 lua/plugins/treesitter.lua
 create mode 100644 lua/plugins/which-key.lua

diff --git a/lua/plugins.lua b/lua/plugins.lua
index 5557286..1b0a8a2 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -1,38 +1,10 @@
 return {
-  {
-    "nvim-neo-tree/neo-tree.nvim",
-    branch = "v3.x",
-    dependencies = {
-      "nvim-lua/plenary.nvim",
-      "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
-      "MunifTanjim/nui.nvim",
-      -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
-    }
-  },
-  { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", },
-  {
-    "nvim-neo-tree/neo-tree.nvim",
-    branch = "v3.x",
-    lazy=false,
-    dependencies = {
-      "nvim-lua/plenary.nvim",
-      "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
-      "MunifTanjim/nui.nvim",
-      -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
-    }
-  },
-  { "nvim-telescope/telescope.nvim", tag = "0.1.5", dependencies = { "nvim-lua/plenary.nvim" } },
   { "nvim-tree/nvim-web-devicons" },
   --	{ "tanvirtin/vgit.nvim", requires = { "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons" }, },
   { "williamboman/mason.nvim" },
   { "ms-jpq/coq_nvim" },
   { "vijaymarupudi/nvim-fzf" },
   { "eandrju/cellular-automaton.nvim" },
-  {
-    "m4xshen/hardtime.nvim",
-    dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
-    opts = {}
-  },
   { "nvim-lua/plenary.nvim" },
   { "f-person/git-blame.nvim" },
   { "airblade/vim-gitgutter" },
@@ -41,41 +13,7 @@ return {
     dependencies = { "nvim-telescope/telescope.nvim" }
   },
   { "gaborvecsei/usage-tracker.nvim" },
-  {
-    "goolord/alpha-nvim",
-    config = function ()
-      require'alpha'.setup(require'alpha.themes.dashboard'.config)
-    end
-  },
-  {
-    "kylechui/nvim-surround",
-    version = "*", -- Use for stability; omit to use `main` branch for the latest features
-    event = "VeryLazy",
-    config = function()
-      require("nvim-surround").setup({
-	-- Configuration here, or leave empty to use defaults
-      })
-    end
-  },
-  {
-    "folke/which-key.nvim",
-    event = "VeryLazy",
-    init = function()
-      vim.o.timeout = true
-      vim.o.timeoutlen = 300
-    end, opts = { }
-  },
   { "windwp/nvim-autopairs", event = "InsertEnter", opts={} }, 
   { "nvim-lualine/lualine.nvim", dependencies = { "nvim-tree/nvim-web-devicons" }, lazy=false },
   { "sudormrfbin/cheatsheet.nvim", dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/popup.nvim", "nvim-lua/plenary.nvim" } },
-  {
-    "romgrk/barbar.nvim",
-    dependencies = {
-      "lewis6991/gitsigns.nvim", -- OPTIONAL: for git status
-      "nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons
-    },
-    init = function() vim.g.barbar_auto_setup = false end,
-    opts = { },
-    version = "^1.0.0", -- optional: only update when a new 1.x version is released
-  },
 }
diff --git a/lua/plugins/alpha-nvim.lua b/lua/plugins/alpha-nvim.lua
new file mode 100644
index 0000000..66bd250
--- /dev/null
+++ b/lua/plugins/alpha-nvim.lua
@@ -0,0 +1,6 @@
+return {
+	"goolord/alpha-nvim",
+	config = function ()
+		require'alpha'.setup(require'alpha.themes.dashboard'.config)
+	end
+}
diff --git a/lua/plugins/barbar.lua b/lua/plugins/barbar.lua
new file mode 100644
index 0000000..89c0de9
--- /dev/null
+++ b/lua/plugins/barbar.lua
@@ -0,0 +1,10 @@
+return {
+	"romgrk/barbar.nvim",
+	dependencies = {
+      "lewis6991/gitsigns.nvim", -- OPTIONAL: for git status
+      "nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons
+  },
+  init = function() vim.g.barbar_auto_setup = false end,
+  opts = { },
+    version = "^1.0.0", -- optional: only update when a new 1.x version is released
+}
diff --git a/lua/plugins/catppuccin.lua b/lua/plugins/catppuccin.lua
new file mode 100644
index 0000000..82f30b4
--- /dev/null
+++ b/lua/plugins/catppuccin.lua
@@ -0,0 +1,9 @@
+return {
+  "catppuccin/nvim",
+  name = "catppuccin",
+  priority = 1000,
+  config = function ()
+    require('catppuccin').setup({ flavour="frappe" })
+    vim.cmd.colorscheme "catppuccin"
+  end
+}
diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua
new file mode 100644
index 0000000..b1fbfd5
--- /dev/null
+++ b/lua/plugins/neotree.lua
@@ -0,0 +1,11 @@
+return {
+  "nvim-neo-tree/neo-tree.nvim",
+  branch = "v3.x",
+  lazy=false,
+  dependencies = {
+    "nvim-lua/plenary.nvim",
+    "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
+    "MunifTanjim/nui.nvim",
+    -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
+  }
+}
diff --git a/lua/plugins/nvim-surround.lua b/lua/plugins/nvim-surround.lua
new file mode 100644
index 0000000..a2c0b8c
--- /dev/null
+++ b/lua/plugins/nvim-surround.lua
@@ -0,0 +1,10 @@
+ return {
+  "kylechui/nvim-surround",
+  version = "*", -- Use for stability; omit to use `main` branch for the latest features
+  event = "VeryLazy",
+  config = function()
+  require("nvim-surround").setup({
+  -- Configuration here, or leave empty to use defaults
+  })
+  end
+}
diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua
new file mode 100644
index 0000000..83b135b
--- /dev/null
+++ b/lua/plugins/telescope.lua
@@ -0,0 +1,4 @@
+return {
+	'nvim-telescope/telescope.nvim', tag = '0.1.5',
+	dependencies = { 'nvim-lua/plenary.nvim' }
+}
diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua
new file mode 100644
index 0000000..c4e24cd
--- /dev/null
+++ b/lua/plugins/treesitter.lua
@@ -0,0 +1 @@
+return { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", }
diff --git a/lua/plugins/which-key.lua b/lua/plugins/which-key.lua
new file mode 100644
index 0000000..adcfa0b
--- /dev/null
+++ b/lua/plugins/which-key.lua
@@ -0,0 +1,8 @@
+return {
+	"folke/which-key.nvim",
+	event = "VeryLazy",
+	init = function()
+		vim.o.timeout = true
+		vim.o.timeoutlen = 300
+	end, opts = { }
+}
-- 
GitLab