diff --git a/lua/taken/lazy/lazy.lua b/lua/taken/lazy/lazy.lua index caa702c..33aee5a 100644 --- a/lua/taken/lazy/lazy.lua +++ b/lua/taken/lazy/lazy.lua @@ -1,203 +1,203 @@ local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then - vim.fn.system({ - "git", - "clone", - "--filter=blob:none", - "https://github.com/folke/lazy.nvim.git", - "--branch=stable", -- latest stable release - lazypath, - }) + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "https://github.com/folke/lazy.nvim.git", + "--branch=stable", -- latest stable release + lazypath, + }) end vim.opt.rtp:prepend(lazypath) local lazy = require("lazy") local plugins = { - { - "catppuccin/nvim", - name = "catppuccin", - priority = 1000, - }, - { "folke/tokyonight.nvim", priority = 1000, lazy = true}, - { "Mofiqul/dracula.nvim", priority = 1000, lazy = true}, - { "roflolilolmao/oceanic-next.nvim", priority = 1000, lazy = true}, - { "olimorris/onedarkpro.nvim", priority = 1000, lazy = true}, - { "NTBBloodbath/doom-one.nvim", priority = 1000, lazy = true}, - { "shaunsingh/moonlight.nvim", priority = 1000, lazy = true}, - { "kvrohit/mellow.nvim", priority = 1000, lazy = true}, - -- telescope - { - "nvim-telescope/telescope.nvim", - version = "0.1.1", - dependencies = { "nvim-lua/plenary.nvim" }, - }, - { - "nvim-telescope/telescope-file-browser.nvim", - dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }, - }, - { - "nvim-telescope/telescope-project.nvim", - dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }, - }, - { - "nvim-telescope/telescope-fzf-native.nvim", - build = "make", - dependencies = { "nvim-telescope/telescope.nvim" }, - }, - { - "VonHeikemen/fine-cmdline.nvim", - dependencies = { - { "MunifTanjim/nui.nvim" }, - }, - cmd = "FineCmdline", - config = function() - require("taken.plugins.lazy.cmdline") - end, - }, - -- development - "github/copilot.vim", - { - "nvim-tree/nvim-tree.lua", - dependencies = { "nvim-tree/nvim-web-devicons" }, - }, - { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" }, - --lsp - { - "williamboman/mason.nvim", - build = function() - pcall(vim.cmd, "MasonUpdate") - end, - }, - "neovim/nvim-lspconfig", - { - "williamboman/mason-lspconfig.nvim", - dependencies = { "williamboman/mason.nvim", "neovim/nvim-lspconfig" }, - }, - -- formatters and linters - "jose-elias-alvarez/null-ls.nvim", - { - "jayp0521/mason-null-ls.nvim", - dependencies = { "williamboman/mason.nvim", "jose-elias-alvarez/null-ls.nvim" }, - }, - -- completion - "hrsh7th/nvim-cmp", - "hrsh7th/cmp-nvim-lsp", - "hrsh7th/cmp-buffer", - "hrsh7th/cmp-path", - -- snippets - "L3MON4D3/LuaSnip", - "saadparwaiz1/cmp_luasnip", - "rafamadriz/friendly-snippets", - "onsails/lspkind.nvim", - { - "folke/trouble.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - }, - { - "iamcco/markdown-preview.nvim", - build = function() - vim.fn["mkdp#util#install"]() - end, - config = function () - vim.cmd([[ + { + "catppuccin/nvim", + name = "catppuccin", + priority = 1000, + }, + { "folke/tokyonight.nvim", priority = 1000, lazy = true }, + { "Mofiqul/dracula.nvim", priority = 1000, lazy = true }, + { "roflolilolmao/oceanic-next.nvim", priority = 1000, lazy = true }, + { "olimorris/onedarkpro.nvim", priority = 1000, lazy = true }, + { "NTBBloodbath/doom-one.nvim", priority = 1000, lazy = true }, + { "shaunsingh/moonlight.nvim", priority = 1000, lazy = true }, + { "kvrohit/mellow.nvim", priority = 1000, lazy = true }, + -- telescope + { + "nvim-telescope/telescope.nvim", + version = "0.1.1", + dependencies = { "nvim-lua/plenary.nvim" }, + }, + { + "nvim-telescope/telescope-file-browser.nvim", + dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }, + }, + { + "nvim-telescope/telescope-project.nvim", + dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }, + }, + { + "nvim-telescope/telescope-fzf-native.nvim", + build = "make", + dependencies = { "nvim-telescope/telescope.nvim" }, + }, + { + "VonHeikemen/fine-cmdline.nvim", + dependencies = { + { "MunifTanjim/nui.nvim" }, + }, + cmd = "FineCmdline", + config = function() + require("taken.plugins.lazy.cmdline") + end, + }, + -- development + "github/copilot.vim", + { + "nvim-tree/nvim-tree.lua", + dependencies = { "nvim-tree/nvim-web-devicons" }, + }, + { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" }, + --lsp + { + "williamboman/mason.nvim", + build = function() + pcall(vim.cmd, "MasonUpdate") + end, + }, + "neovim/nvim-lspconfig", + { + "williamboman/mason-lspconfig.nvim", + dependencies = { "williamboman/mason.nvim", "neovim/nvim-lspconfig" }, + }, + -- formatters and linters + "jose-elias-alvarez/null-ls.nvim", + { + "jayp0521/mason-null-ls.nvim", + dependencies = { "williamboman/mason.nvim", "jose-elias-alvarez/null-ls.nvim" }, + }, + -- completion + "hrsh7th/nvim-cmp", + "hrsh7th/cmp-nvim-lsp", + "hrsh7th/cmp-buffer", + "hrsh7th/cmp-path", + -- snippets + "L3MON4D3/LuaSnip", + "saadparwaiz1/cmp_luasnip", + "rafamadriz/friendly-snippets", + "onsails/lspkind.nvim", + { + "folke/trouble.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + }, + { + "iamcco/markdown-preview.nvim", + build = function() + vim.fn["mkdp#util#install"]() + end, + config = function() + vim.cmd([[ let g:mkdp_auto_close = 0 let g:mkdp_theme = 'dark' ]]) - end, - ft = "markdown", - }, - "numToStr/Comment.nvim", - { "NeogitOrg/neogit", dependencies = "nvim-lua/plenary.nvim" }, - "sindrets/diffview.nvim", - "windwp/nvim-autopairs", - { "windwp/nvim-ts-autotag", dependencies = "nvim-treesitter" }, - { - "lewis6991/gitsigns.nvim", - config = function() - require("gitsigns").setup({}) - end, - }, - { - "f-person/git-blame.nvim", - config = function () - vim.cmd([[ + end, + ft = "markdown", + }, + "numToStr/Comment.nvim", + { "NeogitOrg/neogit", dependencies = "nvim-lua/plenary.nvim" }, + "sindrets/diffview.nvim", + "windwp/nvim-autopairs", + { "windwp/nvim-ts-autotag", dependencies = "nvim-treesitter" }, + { + "lewis6991/gitsigns.nvim", + config = function() + require("gitsigns").setup({}) + end, + }, + { + "f-person/git-blame.nvim", + config = function() + vim.cmd([[ let g:gitblame_enabled = 1 ]]) - end - }, - -- useful plugins - { - "glepnir/dashboard-nvim", - event = "VimEnter", - dependencies = { "nvim-tree/nvim-web-devicons" }, - }, - { - "nvim-neorg/neorg", - build = ":Neorg sync-parsers", - dependencies = "nvim-lua/plenary.nvim", - config = function() - require("taken.plugins.lazy.neorg") - end, - }, - { - "NvChad/nvim-colorizer.lua", - config = function() - require("colorizer").setup({}) - end, - }, - "folke/which-key.nvim", - { - "nvim-lualine/lualine.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - }, - { - "akinsho/toggleterm.nvim", - version = "*", - config = function() - require("taken.plugins.lazy.toggleterm") - end, - cmd = "ToggleTerm", - }, - "rcarriga/nvim-notify", - { - "akinsho/bufferline.nvim", - version = "*", - dependencies = "nvim-tree/nvim-web-devicons" - }, - "TakenMC/presence.nvim", - { - "kylechui/nvim-surround", - version = "*", - config = function() - require("nvim-surround").setup({}) - end, - }, - { - "ObserverOfTime/nvimcord", - cmd = "NvimcordUpdate", - enabled = false, - config = function() - require("taken.plugins.lazy.nvimcord") - end, - }, - "xiyaowong/transparent.nvim", - { - "jokajak/keyseer.nvim", - cmd = "KeySeer", - config = function() - require("taken.plugins.lazy.keyseer") - end, - }, + end, + }, + -- useful plugins + { + "glepnir/dashboard-nvim", + event = "VimEnter", + dependencies = { "nvim-tree/nvim-web-devicons" }, + }, + { + "nvim-neorg/neorg", + build = ":Neorg sync-parsers", + dependencies = "nvim-lua/plenary.nvim", + config = function() + require("taken.plugins.lazy.neorg") + end, + }, + { + "NvChad/nvim-colorizer.lua", + config = function() + require("colorizer").setup({}) + end, + }, + "folke/which-key.nvim", + { + "nvim-lualine/lualine.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + }, + { + "akinsho/toggleterm.nvim", + version = "*", + config = function() + require("taken.plugins.lazy.toggleterm") + end, + cmd = "ToggleTerm", + }, + "rcarriga/nvim-notify", + { + "akinsho/bufferline.nvim", + version = "*", + dependencies = "nvim-tree/nvim-web-devicons", + }, + "TakenMC/presence.nvim", + { + "kylechui/nvim-surround", + version = "*", + config = function() + require("nvim-surround").setup({}) + end, + }, + { + "ObserverOfTime/nvimcord", + cmd = "NvimcordUpdate", + enabled = false, + config = function() + require("taken.plugins.lazy.nvimcord") + end, + }, + "xiyaowong/transparent.nvim", + { + "jokajak/keyseer.nvim", + cmd = "KeySeer", + config = function() + require("taken.plugins.lazy.keyseer") + end, + }, } local opts = { - dev = { - path = "~/git/nvim", - }, - checker = { - enabled = true, - } + dev = { + path = "~/git/nvim", + }, + checker = { + enabled = true, + }, } lazy.setup(plugins, opts) diff --git a/lua/taken/plugins/catppuccin.lua b/lua/taken/plugins/catppuccin.lua new file mode 100644 index 0000000..26f4d1a --- /dev/null +++ b/lua/taken/plugins/catppuccin.lua @@ -0,0 +1,11 @@ +local status, catppuccin = pcall(require, "catppuccin") +if not status then + return +end + +catppuccin.setup({ + integrations = { + notify = true, + mason = true, + } +})