From 1d9a5a0b0a4f52bc1ff1ec60f1507e0d8a2cf2cc Mon Sep 17 00:00:00 2001 From: Alfred Burgess <aburgess@ucc.gu.uwa.edu.au> Date: Fri, 9 Feb 2024 16:18:32 +0800 Subject: [PATCH] Added packages to init --- .gitignore | 2 ++ init.lua | 55 ++++++++++++++++++++++++++++++++++++------------------ 2 files changed, 39 insertions(+), 18 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6fe588f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +usage_data.json +lazy-lock.json diff --git a/init.lua b/init.lua index 6744064..0e35ae7 100644 --- a/init.lua +++ b/init.lua @@ -12,14 +12,22 @@ if not vim.loop.fs_stat(lazypath) then lazypath, }) end -vim.opt.rtp:prepend(lazypath) +vim.opt.rtp:prepend(vim.env.LAZY or lazypath) -local opts = {} +local opts = { +} local plugins = { - { "catppuccin/nvim", name = "catppuccin", priority = 1000, lazy=false }, + { + "catppuccin/nvim", + name = "catppuccin", + priority = 1000, + lazy=false, + config = function() vim.cmd( [[colorscheme catppuccin]] ) end, + }, { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", }, { "nvim-tree/nvim-web-devicons" }, +-- { "tanvirtin/vgit.nvim", requires = { "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons" }, }, { "williamboman/mason.nvim" }, { "nvim-tree/nvim-tree.lua", @@ -31,8 +39,19 @@ local plugins = { end, }, { "nvim-lua/plenary.nvim" }, + { "f-person/git-blame.nvim" }, { "gaborvecsei/usage-tracker.nvim" }, - { 'nvim-telescope/telescope.nvim', tag = '0.1.5', dependencies = { 'nvim-lua/plenary.nvim' } }, + { + "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 + }, + { "nvim-telescope/telescope.nvim", tag = "0.1.5", dependencies = { "nvim-lua/plenary.nvim" } }, { "folke/which-key.nvim", event = "VeryLazy", @@ -41,30 +60,30 @@ local plugins = { 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 + { "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 }, - 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 -}, } require("lazy").setup( plugins, opts) -require("catppuccin").setup() require("mason").setup() require("telescope").setup() require("nvim-tree").setup() +-- require("vgit").setup() require("lualine").setup( { - options = { theme = 'dracula' } + options = { theme = "dracula" } } ) -require('usage-tracker').setup({ +require("usage-tracker").setup({ keep_eventlog_days = 14, cleanup_freq_days = 7, event_wait_period_in_sec = 5, -- GitLab