local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then local lazyrepo = "https://github.com/folke/lazy.nvim.git" local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) if vim.v.shell_error ~= 0 then vim.api.nvim_echo({ { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, { out, "WarningMsg" }, { "\nPress any key to exit..." }, }, true, {}) vim.fn.getchar() os.exit(1) end end vim.opt.rtp:prepend(lazypath) -- Due to Telescope loading too fast this must be configured here vim.g.mapleader = " " local plugins = { { "nvim-telescope/telescope.nvim", version = "0.2.1", dependencies = { { "nvim-lua/plenary.nvim" }, { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }, }, }, { "rose-pine/neovim", name = "rose-pine", config = function() vim.cmd("colorscheme rose-pine") end }, { "nvim-treesitter/nvim-treesitter", branch = "main", lazy = false, build = ":TSUpdate" }, { "ThePrimeagen/harpoon", branch = "harpoon2", dependencies = { "nvim-lua/plenary.nvim" } }, "mbbill/undotree", { "tpope/vim-fugitive", lazy = true }, { -- Use Neovim to input into Browser Textfields "subnut/nvim-ghost.nvim", lazy = true }, { "andweeb/presence.nvim", lazy = true }, "numToStr/Comment.nvim", { 'stevearc/oil.nvim', dependencies = { { "nvim-mini/mini.icons", opts = {} } }, -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons lazy = false, }, { -- The tmux `Prefix + z` behaviour "szw/vim-maximizer", keys = { { "z", "MaximizerToggle" }, } }, { "williamboman/mason.nvim" }, { "hrsh7th/cmp-nvim-lsp" }, { "hrsh7th/nvim-cmp" }, { "L3MON4D3/LuaSnip", version = "v2.*", -- Replace by the latest released major (first number of latest release) }, { "neovim/nvim-lspconfig", lazy = false, }, { "folke/lazydev.nvim", ft = "lua", opts = { library = { { path = "${3rd}/luv/library", words = { "vim%.uv" }, }, }, }, }, { "goolord/alpha-nvim", lazy = true, event = "VimEnter", cmd = "Alpha", }, } require("lazy").setup(plugins, {})