2021-09-07 23:26:21 +08:00
|
|
|
-- Only required if you have packer configured as `opt`
|
|
|
|
vim.cmd [[packadd packer.nvim]]
|
|
|
|
|
|
|
|
require('packer').init {
|
|
|
|
display = {
|
|
|
|
open_fn = function()
|
|
|
|
return require("packer.util").float {border = "single"}
|
|
|
|
end,
|
|
|
|
prompt_border = "single"
|
|
|
|
},
|
|
|
|
git = {
|
|
|
|
clone_timeout = 600 -- Timeout, in seconds, for git clones
|
|
|
|
},
|
|
|
|
auto_clean = true,
|
|
|
|
compile_on_sync = true
|
|
|
|
-- auto_reload_compiled = true
|
|
|
|
}
|
|
|
|
|
|
|
|
return require('packer').startup(function(use)
|
|
|
|
use {'wbthomason/packer.nvim', event = 'VimEnter'}
|
|
|
|
|
|
|
|
-- core UI
|
|
|
|
use {'kyazdani42/nvim-web-devicons', after = 'packer.nvim'}
|
|
|
|
use {
|
|
|
|
'hoob3rt/lualine.nvim',
|
|
|
|
after = 'nvim-web-devicons',
|
|
|
|
config = function() require "plugins.statusline" end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'RRethy/nvim-base16',
|
|
|
|
event = 'VimEnter',
|
|
|
|
config = function() require "plugins.base16" end
|
|
|
|
}
|
|
|
|
|
|
|
|
-- lsp stuff
|
|
|
|
use {
|
|
|
|
'nvim-treesitter/nvim-treesitter',
|
|
|
|
event = 'BufRead',
|
|
|
|
config = function() require "plugins.treesitter" end,
|
|
|
|
run = ':TSUpdate'
|
|
|
|
}
|
|
|
|
use {'neovim/nvim-lspconfig', event = 'BufRead'}
|
|
|
|
use {
|
|
|
|
'kabouzeid/nvim-lspinstall',
|
2021-09-08 19:57:41 +08:00
|
|
|
config = function() require "plugins.lspinstall" end,
|
|
|
|
after = 'nvim-lspconfig'
|
2021-09-07 23:26:21 +08:00
|
|
|
}
|
|
|
|
use {'onsails/lspkind-nvim', after = 'nvim-lspconfig'}
|
|
|
|
use {"ray-x/lsp_signature.nvim", after = 'nvim-lspconfig'}
|
|
|
|
-- packer
|
|
|
|
use {
|
|
|
|
'ms-jpq/coq_nvim',
|
|
|
|
branch = 'coq',
|
2021-09-08 19:57:41 +08:00
|
|
|
event = 'InsertEnter',
|
|
|
|
config = function() require "plugins.coq" end
|
2021-09-07 23:26:21 +08:00
|
|
|
}
|
2021-09-08 19:57:41 +08:00
|
|
|
use {'ms-jpq/coq.artifacts', after = 'coq_nvim', branch = 'artifacts'}
|
2021-09-07 23:26:21 +08:00
|
|
|
|
|
|
|
-- formating and editing
|
|
|
|
use {"sbdchd/neoformat", cmd = "Neoformat"}
|
|
|
|
use {
|
|
|
|
"mattn/emmet-vim",
|
|
|
|
event = "FileType html,css",
|
|
|
|
setup = function() require "plugins.emmet" end
|
|
|
|
}
|
|
|
|
use {"machakann/vim-sandwich", event = "BufRead"}
|
|
|
|
|
2021-09-08 20:54:53 +08:00
|
|
|
use {
|
|
|
|
"terrortylor/nvim-comment",
|
2021-09-09 19:01:36 +08:00
|
|
|
config = function() require('nvim_comment').setup() end,
|
2021-09-08 20:54:53 +08:00
|
|
|
cmd = "CommentToggle"
|
|
|
|
}
|
|
|
|
|
2021-09-07 23:26:21 +08:00
|
|
|
-- navigation
|
|
|
|
use {
|
|
|
|
'kyazdani42/nvim-tree.lua',
|
|
|
|
cmd = 'NvimTreeToggle',
|
|
|
|
requires = 'kyazdani42/nvim-web-devicons'
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
"vimwiki/vimwiki",
|
|
|
|
cmd = "VimwikiIndex",
|
|
|
|
setup = function() require "plugins.vimwiki" end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'andymass/vim-matchup',
|
|
|
|
after = 'nvim-treesitter',
|
|
|
|
config = function() require "plugins.matchup" end
|
|
|
|
}
|
2021-09-08 20:39:04 +08:00
|
|
|
use {
|
|
|
|
'nvim-telescope/telescope.nvim',
|
|
|
|
requires = {{'nvim-lua/plenary.nvim'}},
|
|
|
|
cmd = 'Telescope'
|
|
|
|
}
|
2021-09-07 23:26:21 +08:00
|
|
|
|
|
|
|
-- eye-candy
|
|
|
|
use {
|
|
|
|
'sunjon/shade.nvim',
|
|
|
|
event = "BufAdd",
|
|
|
|
config = function() require "plugins.shade" end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
"lukas-reineke/indent-blankline.nvim",
|
2021-09-08 19:57:41 +08:00
|
|
|
after = {"nvim-treesitter", "nvim-base16"},
|
2021-09-07 23:26:21 +08:00
|
|
|
config = function() require "plugins.indent-blankline" end
|
|
|
|
}
|
2021-09-08 20:39:04 +08:00
|
|
|
use {
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
requires = {'nvim-lua/plenary.nvim'},
|
|
|
|
config = function() require('gitsigns').setup() end
|
|
|
|
}
|
2021-09-09 19:01:36 +08:00
|
|
|
use {
|
|
|
|
'p00f/nvim-ts-rainbow',
|
|
|
|
after = "nvim-treesitter",
|
|
|
|
config = function() require "plugins.nvim-ts-rainbow" end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'winston0410/range-highlight.nvim',
|
|
|
|
event = "BufRead",
|
|
|
|
config = function() require("range-highlight").setup {} end,
|
|
|
|
requires = 'winston0410/cmd-parser.nvim'
|
|
|
|
}
|
|
|
|
-- integrations
|
|
|
|
use {
|
|
|
|
'glacambre/firenvim',
|
|
|
|
run = function() vim.fn['firenvim#install'](0) end
|
|
|
|
}
|
2021-09-07 23:26:21 +08:00
|
|
|
|
|
|
|
end)
|