195 lines
4.6 KiB
Lua
195 lines
4.6 KiB
Lua
local fn = vim.fn
|
|
|
|
-- Automatically install packer
|
|
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
|
|
---@diagnostic disable-next-line: missing-parameter
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
|
PACKER_BOOTSTRAP = fn.system {
|
|
"git",
|
|
"clone",
|
|
"--depth",
|
|
"1",
|
|
"https://github.com/wbthomason/packer.nvim",
|
|
install_path,
|
|
}
|
|
print "Installing packer close and reopen Neovim..."
|
|
vim.cmd [[packadd packer.nvim]]
|
|
end
|
|
|
|
-- Autocommand that reloads neovim whenever you save the plugins.lua file
|
|
vim.cmd [[
|
|
augroup packer_user_config
|
|
autocmd!
|
|
autocmd BufWritePost plugins.lua source <afile> | PackerSync
|
|
augroup end
|
|
]]
|
|
|
|
-- Use a protected call so we don't error out on first use
|
|
local status_ok, packer = pcall(require, "packer")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
|
|
-- Have packer use a popup window
|
|
packer.init {
|
|
-- snapshot = "july-24",
|
|
snapshot_path = fn.stdpath "config" .. "/snapshots",
|
|
max_jobs = 50,
|
|
display = {
|
|
open_fn = function()
|
|
return require("packer.util").float { border = "rounded" }
|
|
end,
|
|
prompt_border = "rounded", -- Border style of prompt popups.
|
|
},
|
|
}
|
|
|
|
-- Install your plugins here
|
|
return packer.startup(function(use)
|
|
-- Plugin Mangager
|
|
use "wbthomason/packer.nvim" -- Have packer manage itself
|
|
|
|
-- Lua Development
|
|
use "nvim-lua/plenary.nvim" -- Useful lua functions used ny lots of plugins
|
|
use "nvim-lua/popup.nvim"
|
|
|
|
-- LSP
|
|
use "neovim/nvim-lspconfig" -- enable LSP
|
|
use "williamboman/nvim-lsp-installer" -- simple to use language server installer
|
|
use "jose-elias-alvarez/null-ls.nvim" -- for formatters and linters
|
|
use "ray-x/lsp_signature.nvim"
|
|
use "SmiteshP/nvim-navic"
|
|
use "simrat39/symbols-outline.nvim"
|
|
use "RRethy/vim-illuminate"
|
|
use "j-hui/fidget.nvim"
|
|
use "lvimuser/lsp-inlayhints.nvim"
|
|
|
|
-- Completion
|
|
use "hrsh7th/nvim-cmp"
|
|
use "hrsh7th/cmp-buffer" -- buffer completions
|
|
use "hrsh7th/cmp-path" -- path completions
|
|
use "saadparwaiz1/cmp_luasnip" -- snippet completions
|
|
use "hrsh7th/cmp-nvim-lsp"
|
|
use "hrsh7th/cmp-nvim-lua"
|
|
|
|
-- Snippet
|
|
use "L3MON4D3/LuaSnip" --snippet engine
|
|
use "rafamadriz/friendly-snippets" -- a bunch of snippets to use
|
|
|
|
-- Syntax/Treesitter
|
|
use "nvim-treesitter/nvim-treesitter"
|
|
use "JoosepAlviste/nvim-ts-context-commentstring"
|
|
use "nvim-treesitter/playground"
|
|
use "kylechui/nvim-surround"
|
|
|
|
-- Marks
|
|
use "christianchiarulli/harpoon"
|
|
use "MattesGroeger/vim-bookmarks"
|
|
|
|
-- Fuzzy Finder/Telescope
|
|
use "nvim-telescope/telescope.nvim"
|
|
use "nvim-telescope/telescope-media-files.nvim"
|
|
|
|
-- Note Taking
|
|
use "mickael-menu/zk-nvim"
|
|
|
|
-- Color
|
|
use "NvChad/nvim-colorizer.lua"
|
|
use "ziontee113/color-picker.nvim"
|
|
|
|
-- Colorschemes
|
|
use "folke/tokyonight.nvim"
|
|
use "sainnhe/gruvbox-material"
|
|
use 'RRethy/nvim-base16'
|
|
|
|
-- Utility
|
|
use "rcarriga/nvim-notify"
|
|
use "stevearc/dressing.nvim"
|
|
use "ghillb/cybu.nvim"
|
|
use "moll/vim-bbye"
|
|
use "lewis6991/impatient.nvim"
|
|
use "lalitmee/browse.nvim"
|
|
use 'junegunn/goyo.vim'
|
|
use 'junegunn/limelight.vim'
|
|
|
|
-- Icon
|
|
use "kyazdani42/nvim-web-devicons"
|
|
|
|
-- Debugging
|
|
use "mfussenegger/nvim-dap"
|
|
use "rcarriga/nvim-dap-ui"
|
|
|
|
-- Tabline
|
|
use "akinsho/bufferline.nvim"
|
|
use "tiagovla/scope.nvim"
|
|
|
|
-- Statusline
|
|
use "christianchiarulli/lualine.nvim"
|
|
|
|
-- Startup
|
|
use "goolord/alpha-nvim"
|
|
|
|
-- Indent
|
|
use "lukas-reineke/indent-blankline.nvim"
|
|
|
|
-- File Explorer
|
|
use "kyazdani42/nvim-tree.lua"
|
|
use "christianchiarulli/lir.nvim"
|
|
|
|
-- Comment
|
|
use "numToStr/Comment.nvim"
|
|
use "folke/todo-comments.nvim"
|
|
|
|
-- Terminal
|
|
use "akinsho/toggleterm.nvim"
|
|
|
|
-- Project
|
|
use "ahmedkhalf/project.nvim"
|
|
use "windwp/nvim-spectre"
|
|
|
|
-- Quickfix
|
|
use "kevinhwang91/nvim-bqf"
|
|
|
|
-- Git
|
|
use "lewis6991/gitsigns.nvim"
|
|
use "f-person/git-blame.nvim"
|
|
use "ruifm/gitlinker.nvim"
|
|
use "mattn/vim-gist"
|
|
use "mattn/webapi-vim"
|
|
|
|
-- Github
|
|
use "pwntester/octo.nvim"
|
|
|
|
-- Editing Support
|
|
use "windwp/nvim-autopairs"
|
|
use "monaqa/dial.nvim"
|
|
use "nacro90/numb.nvim"
|
|
use "andymass/vim-matchup"
|
|
use "folke/zen-mode.nvim"
|
|
use "fgheng/winbar.nvim"
|
|
use "karb94/neoscroll.nvim"
|
|
use "junegunn/vim-slash"
|
|
use 'vimwiki/vimwiki'
|
|
|
|
-- Motion
|
|
use "phaazon/hop.nvim"
|
|
|
|
-- Keybinding
|
|
use "folke/which-key.nvim"
|
|
|
|
-- Typescript TODO: set this up, also add keybinds to ftplugin
|
|
use "jose-elias-alvarez/typescript.nvim"
|
|
|
|
-- Markdown
|
|
use {
|
|
"iamcco/markdown-preview.nvim",
|
|
run = "cd app && npm install",
|
|
ft = "markdown",
|
|
}
|
|
|
|
-- Automatically set up your configuration after cloning packer.nvim
|
|
-- Put this at the end after all plugins
|
|
if PACKER_BOOTSTRAP then
|
|
require("packer").sync()
|
|
end
|
|
end)
|