2021-03-23 06:12:50 +01:00
|
|
|
-- vim.cmd [[packadd packer.nvim]]
|
2021-03-14 20:10:28 +01:00
|
|
|
local execute = vim.api.nvim_command
|
|
|
|
local fn = vim.fn
|
|
|
|
|
2021-03-19 06:46:18 +01:00
|
|
|
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
2021-03-14 20:10:28 +01:00
|
|
|
|
|
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
2021-03-18 02:02:27 +01:00
|
|
|
execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
|
|
|
|
execute 'packadd packer.nvim'
|
2021-03-14 20:10:28 +01:00
|
|
|
end
|
|
|
|
|
2021-03-17 04:31:44 +01:00
|
|
|
vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua
|
2021-03-16 03:04:54 +01:00
|
|
|
|
2021-03-26 03:30:39 +01:00
|
|
|
-- require('packer').init({display = {non_interactive = true}})
|
|
|
|
require('packer').init({display = {auto_clean = false}})
|
|
|
|
|
2021-03-17 04:13:45 +01:00
|
|
|
return require('packer').startup(function(use)
|
2021-03-18 02:02:27 +01:00
|
|
|
-- Packer can manage itself as an optional plugin
|
2021-03-19 06:46:18 +01:00
|
|
|
use 'wbthomason/packer.nvim'
|
2021-03-18 02:02:27 +01:00
|
|
|
|
|
|
|
-- Information
|
2021-03-30 04:07:01 +02:00
|
|
|
-- use 'nanotee/nvim-lua-guide'
|
2021-03-18 02:02:27 +01:00
|
|
|
|
|
|
|
-- Quality of life improvements
|
2021-03-30 04:07:01 +02:00
|
|
|
-- use 'norcalli/nvim_utils'
|
2021-03-18 02:02:27 +01:00
|
|
|
|
|
|
|
-- LSP
|
|
|
|
use 'neovim/nvim-lspconfig'
|
|
|
|
use 'glepnir/lspsaga.nvim'
|
|
|
|
use 'onsails/lspkind-nvim'
|
|
|
|
use 'kosayoda/nvim-lightbulb'
|
|
|
|
use 'mfussenegger/nvim-jdtls'
|
2021-03-23 23:55:12 +01:00
|
|
|
use 'kabouzeid/nvim-lspinstall'
|
2021-03-18 02:02:27 +01:00
|
|
|
|
|
|
|
-- Debugging
|
|
|
|
use 'mfussenegger/nvim-dap'
|
|
|
|
|
|
|
|
-- Autocomplete
|
|
|
|
use 'hrsh7th/nvim-compe'
|
2021-03-22 01:59:21 +01:00
|
|
|
use 'mattn/emmet-vim'
|
2021-03-18 02:02:27 +01:00
|
|
|
use 'hrsh7th/vim-vsnip'
|
2021-03-29 01:20:24 +02:00
|
|
|
use "rafamadriz/friendly-snippets"
|
2021-03-29 16:59:18 +02:00
|
|
|
use 'ChristianChiarulli/html-snippets'
|
2021-03-18 02:02:27 +01:00
|
|
|
|
|
|
|
-- Treesitter
|
|
|
|
use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}
|
|
|
|
use 'p00f/nvim-ts-rainbow'
|
2021-03-26 03:30:39 +01:00
|
|
|
use {'lukas-reineke/indent-blankline.nvim', branch = 'lua'}
|
2021-03-31 18:05:26 +02:00
|
|
|
use 'nvim-treesitter/playground'
|
2021-03-29 01:20:24 +02:00
|
|
|
use 'JoosepAlviste/nvim-ts-context-commentstring'
|
|
|
|
use 'windwp/nvim-ts-autotag'
|
2021-03-18 02:02:27 +01:00
|
|
|
|
|
|
|
-- Icons
|
|
|
|
use 'kyazdani42/nvim-web-devicons'
|
|
|
|
use 'ryanoasis/vim-devicons'
|
|
|
|
|
|
|
|
-- Status Line and Bufferline
|
|
|
|
use 'glepnir/galaxyline.nvim'
|
|
|
|
use 'romgrk/barbar.nvim'
|
|
|
|
|
|
|
|
-- Telescope
|
|
|
|
use 'nvim-lua/popup.nvim'
|
|
|
|
use 'nvim-lua/plenary.nvim'
|
|
|
|
use 'nvim-telescope/telescope.nvim'
|
|
|
|
use 'nvim-telescope/telescope-media-files.nvim'
|
|
|
|
|
|
|
|
-- Explorer
|
|
|
|
use 'kyazdani42/nvim-tree.lua'
|
|
|
|
|
|
|
|
-- Color
|
|
|
|
use 'christianchiarulli/nvcode-color-schemes.vim'
|
|
|
|
use 'norcalli/nvim-colorizer.lua'
|
2021-03-23 06:12:50 +01:00
|
|
|
use 'sheerun/vim-polyglot'
|
2021-03-18 02:02:27 +01:00
|
|
|
|
|
|
|
-- Git
|
2021-03-30 04:07:01 +02:00
|
|
|
-- use 'TimUntersberger/neogit'
|
2021-03-18 02:02:27 +01:00
|
|
|
use {'lewis6991/gitsigns.nvim', requires = {'nvim-lua/plenary.nvim'}}
|
|
|
|
use 'f-person/git-blame.nvim'
|
|
|
|
use 'tpope/vim-fugitive'
|
|
|
|
use 'tpope/vim-rhubarb'
|
|
|
|
|
|
|
|
-- Easily Create Gists
|
|
|
|
use 'mattn/vim-gist'
|
|
|
|
use 'mattn/webapi-vim'
|
|
|
|
|
2021-03-19 21:06:01 +01:00
|
|
|
-- Webdev
|
2021-03-29 01:20:24 +02:00
|
|
|
-- TODO add back when I learn it better
|
|
|
|
-- use 'gennaro-tedesco/nvim-jqx'
|
2021-03-30 04:07:01 +02:00
|
|
|
-- use 'turbio/bracey.vim'
|
2021-03-19 21:06:01 +01:00
|
|
|
|
2021-04-01 10:33:02 +02:00
|
|
|
-- Php
|
|
|
|
use 'phpactor/phpactor'
|
|
|
|
|
2021-03-30 08:17:40 +02:00
|
|
|
-- Flutter
|
|
|
|
use 'thosakwe/vim-flutter'
|
|
|
|
|
2021-04-01 10:33:02 +02:00
|
|
|
-- Dependency assistent
|
|
|
|
use 'akinsho/dependency-assist.nvim'
|
|
|
|
|
2021-03-19 21:06:01 +01:00
|
|
|
-- Registers
|
2021-03-30 04:07:01 +02:00
|
|
|
-- use 'gennaro-tedesco/nvim-peekup'
|
2021-03-19 21:06:01 +01:00
|
|
|
|
2021-03-23 06:12:50 +01:00
|
|
|
-- Navigation
|
2021-03-30 04:07:01 +02:00
|
|
|
use 'unblevable/quick-scope' -- hop may replace you
|
2021-03-23 06:12:50 +01:00
|
|
|
use 'phaazon/hop.nvim'
|
2021-03-30 04:07:01 +02:00
|
|
|
use 'kevinhwang91/rnvimr' -- telescope may fully replace you
|
2021-03-23 06:12:50 +01:00
|
|
|
|
2021-03-18 02:02:27 +01:00
|
|
|
-- General Plugins
|
2021-03-23 06:12:50 +01:00
|
|
|
use 'liuchengxu/vim-which-key'
|
2021-03-18 02:02:27 +01:00
|
|
|
use 'kevinhwang91/nvim-bqf'
|
|
|
|
use 'airblade/vim-rooter'
|
2021-03-24 22:58:17 +01:00
|
|
|
use 'ChristianChiarulli/dashboard-nvim'
|
2021-03-18 02:02:27 +01:00
|
|
|
use 'metakirby5/codi.vim'
|
2021-03-19 21:06:01 +01:00
|
|
|
use {'iamcco/markdown-preview.nvim', run = 'cd app && npm install'}
|
2021-03-18 02:02:27 +01:00
|
|
|
use 'voldikss/vim-floaterm'
|
|
|
|
use 'terrortylor/nvim-comment'
|
2021-03-23 06:12:50 +01:00
|
|
|
use 'monaqa/dial.nvim'
|
2021-03-18 02:02:27 +01:00
|
|
|
use 'junegunn/goyo.vim'
|
|
|
|
use 'andymass/vim-matchup'
|
2021-03-26 22:02:27 +01:00
|
|
|
use 'MattesGroeger/vim-bookmarks'
|
2021-03-29 16:54:03 +02:00
|
|
|
use 'windwp/nvim-autopairs'
|
2021-04-01 10:33:02 +02:00
|
|
|
use 'mbbill/undotree'
|
2021-03-19 21:06:01 +01:00
|
|
|
|
2021-03-30 21:15:38 +02:00
|
|
|
-- Database
|
|
|
|
use 'tpope/vim-dadbod'
|
|
|
|
use 'kristijanhusak/vim-dadbod-ui'
|
|
|
|
use 'kristijanhusak/vim-dadbod-completion'
|
|
|
|
|
2021-03-31 16:45:46 +02:00
|
|
|
-- Documentation Generator
|
|
|
|
use {'kkoomen/vim-doge', run = ':call doge#install()'}
|
|
|
|
|
2021-03-23 06:12:50 +01:00
|
|
|
-- TODO put this back when stable for indent lines
|
2021-03-26 03:30:39 +01:00
|
|
|
-- vim.g.indent_blankline_space_char = ''
|
2021-03-18 02:02:27 +01:00
|
|
|
-- use 'b3nj5m1n/kommentary'
|
2021-03-18 07:12:27 +01:00
|
|
|
-- use {
|
|
|
|
-- 'glacambre/firenvim',
|
|
|
|
-- run = function()
|
|
|
|
-- vim.fn['firenvim#install'](1)
|
|
|
|
-- end
|
|
|
|
-- }
|
2021-03-24 22:58:17 +01:00
|
|
|
-- use 'glepnir/dashboard-nvim'
|
|
|
|
-- use 'mhinz/vim-startify'
|
|
|
|
-- use 'cstrap/python-snippets'
|
|
|
|
-- use 'ylcnfrht/vscode-python-snippet-pack'
|
|
|
|
-- use 'norcalli/snippets.nvim'
|
|
|
|
-- use {'akinsho/nvim-bufferline.lua', requires = 'kyazdani42/nvim-web-devicons'}
|
2021-03-26 00:58:40 +01:00
|
|
|
-- use 'SirVer/ultisnips'
|
|
|
|
-- use 'honza/vim-snippets'
|
|
|
|
-- vim.g.UltiSnipsExpandTrigger="<CR>"
|
|
|
|
-- vim.g.UltiSnipsJumpForwardTrigger="<Tab>"
|
|
|
|
-- vim.g.UltiSnipsJumpBackwardTrigger="<S-Tab>"
|
|
|
|
-- use 'blackcauldron7/surround.nvim'
|
2021-03-29 01:20:24 +02:00
|
|
|
-- use 'ChristianChiarulli/java-snippets'
|
|
|
|
-- use 'xabikos/vscode-javascript'
|
|
|
|
-- use 'dsznajder/vscode-es7-javascript-react-snippets'
|
|
|
|
-- use 'golang/vscode-go'
|
|
|
|
-- use 'rust-lang/vscode-rust'
|
|
|
|
-- use 'ChristianChiarulli/python-snippets'
|
2021-03-29 16:59:18 +02:00
|
|
|
-- use 'kshenoy/vim-signature'
|
|
|
|
-- use 'nelstrom/vim-visual-star-search'
|
|
|
|
-- TODO switch back when config support snips
|
|
|
|
-- use 'cohama/lexima.vim'
|
2021-03-30 04:07:01 +02:00
|
|
|
-- use 'bfredl/nvim-miniyank'
|
|
|
|
-- use 'brooth/far.vim'
|
|
|
|
-- use 'liuchengxu/vista.vim'
|
|
|
|
-- use 'psliwka/vim-smoothie'
|
|
|
|
-- use 'nvim-treesitter/nvim-treesitter-refactor'
|
|
|
|
-- use 'nvim-treesitter/playground'
|
|
|
|
-- use 'moll/vim-bbye'
|
2021-03-14 20:10:28 +01:00
|
|
|
end)
|