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 {
|
2021-09-15 15:18:15 +08:00
|
|
|
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
|
2021-09-07 23:26:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
return require('packer').startup(function(use)
|
2021-09-15 15:18:15 +08:00
|
|
|
use {'wbthomason/packer.nvim', event = 'VimEnter'}
|
2021-09-07 23:26:21 +08:00
|
|
|
|
2021-09-15 15:18:15 +08:00
|
|
|
-- 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',
|
|
|
|
after = 'packer.nvim',
|
|
|
|
config = function() require "plugins.base16" end
|
|
|
|
}
|
2021-09-07 23:26:21 +08:00
|
|
|
|
2021-09-15 15:18:15 +08:00
|
|
|
-- lsp stuff
|
|
|
|
use {
|
|
|
|
'nvim-treesitter/nvim-treesitter',
|
|
|
|
event = 'VimEnter',
|
|
|
|
config = function() require "plugins.treesitter" end,
|
|
|
|
run = ':TSUpdate'
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'lewis6991/spellsitter.nvim',
|
|
|
|
after = "nvim-treesitter",
|
|
|
|
config = function() require('spellsitter').setup() end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'ms-jpq/coq_nvim',
|
|
|
|
branch = 'coq',
|
2021-09-24 23:22:16 +08:00
|
|
|
event = 'VimEnter',
|
2021-09-15 15:18:15 +08:00
|
|
|
run = ':COQdeps',
|
|
|
|
config = function() require "plugins.coq" end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'ms-jpq/coq.artifacts',
|
|
|
|
run = ':COQdeps',
|
|
|
|
after = 'coq_nvim',
|
|
|
|
branch = 'artifacts'
|
|
|
|
}
|
2021-09-18 08:55:36 +08:00
|
|
|
use {
|
|
|
|
'ms-jpq/coq.thirdparty',
|
|
|
|
branch = '3p',
|
|
|
|
after = 'coq_nvim',
|
|
|
|
config = function()
|
|
|
|
require("coq_3p") {
|
|
|
|
{src = "nvimlua", short_name = "nLUA"}, {src = "repl"},
|
2021-09-24 23:22:16 +08:00
|
|
|
{src = "figlet", short_name = "BIG"}
|
2021-09-18 08:55:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
end
|
|
|
|
}
|
2021-09-21 11:54:09 +08:00
|
|
|
use {'neovim/nvim-lspconfig', after = "coq_nvim"}
|
|
|
|
use {
|
|
|
|
'kabouzeid/nvim-lspinstall',
|
|
|
|
config = function() require "plugins.lspinstall" end,
|
|
|
|
after = 'nvim-lspconfig'
|
|
|
|
}
|
2021-09-07 23:26:21 +08:00
|
|
|
|
2021-09-15 15:18:15 +08:00
|
|
|
-- formating and editing
|
|
|
|
use {"sbdchd/neoformat", cmd = "Neoformat"}
|
|
|
|
use {
|
|
|
|
"mattn/emmet-vim",
|
|
|
|
event = "FileType html,css",
|
|
|
|
setup = function() require "plugins.emmet" end
|
|
|
|
}
|
2021-09-24 23:22:16 +08:00
|
|
|
use {"machakann/vim-sandwich", event = "VimEnter"}
|
2021-09-07 23:26:21 +08:00
|
|
|
|
2021-09-15 15:18:15 +08:00
|
|
|
use {
|
|
|
|
"terrortylor/nvim-comment",
|
|
|
|
config = function() require('nvim_comment').setup() end,
|
|
|
|
cmd = "CommentToggle"
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
"windwp/nvim-autopairs",
|
|
|
|
after = "coq_nvim",
|
|
|
|
config = function() require("plugins.nvim-autopairs") end
|
|
|
|
}
|
2021-09-08 20:54:53 +08:00
|
|
|
|
2021-09-15 15:18:15 +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
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'nvim-telescope/telescope.nvim',
|
|
|
|
requires = {{'nvim-lua/plenary.nvim'}},
|
|
|
|
cmd = 'Telescope'
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'phaazon/hop.nvim',
|
2021-09-24 23:22:16 +08:00
|
|
|
event = "VimEnter",
|
2021-09-15 15:18:15 +08:00
|
|
|
as = 'hop',
|
|
|
|
config = function()
|
|
|
|
require'hop'.setup {keys = 'etovxqpdygfblzhckisuran'}
|
|
|
|
end
|
|
|
|
}
|
2021-09-07 23:26:21 +08:00
|
|
|
|
2021-09-15 15:18:15 +08:00
|
|
|
-- eye-candy
|
|
|
|
use {
|
|
|
|
'sunjon/shade.nvim',
|
|
|
|
event = "VimEnter",
|
|
|
|
config = function() require "plugins.shade" end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
"lukas-reineke/indent-blankline.nvim",
|
|
|
|
after = {"nvim-treesitter", "nvim-base16"},
|
|
|
|
config = function() require "plugins.indent-blankline" end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
requires = {'nvim-lua/plenary.nvim'},
|
|
|
|
config = function() require('gitsigns').setup() end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'p00f/nvim-ts-rainbow',
|
|
|
|
after = "nvim-treesitter",
|
|
|
|
config = function() require "plugins.nvim-ts-rainbow" end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'winston0410/range-highlight.nvim',
|
2021-09-24 23:22:16 +08:00
|
|
|
event = "CmdlineEnter",
|
2021-09-15 15:18:15 +08:00
|
|
|
config = function() require("range-highlight").setup {} end,
|
|
|
|
requires = 'winston0410/cmd-parser.nvim'
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'norcalli/nvim-colorizer.lua',
|
2021-09-24 23:22:16 +08:00
|
|
|
event = "VimEnter",
|
2021-09-15 15:18:15 +08:00
|
|
|
config = function() require'colorizer'.setup() end
|
|
|
|
}
|
2021-09-09 19:55:32 +08:00
|
|
|
|
2021-09-15 15:18:15 +08:00
|
|
|
-- integrations
|
|
|
|
use {'michaelb/sniprun', run = 'bash ./install.sh', cmd = "SnipRun"}
|
|
|
|
use {"tpope/vim-fugitive", cmd = "G"}
|
2021-09-21 11:54:09 +08:00
|
|
|
use {
|
|
|
|
"xuhdev/vim-latex-live-preview",
|
|
|
|
setup = function() vim.g.livepreview_previewer = 'zathura' end,
|
|
|
|
event = "FileType tex"
|
|
|
|
}
|
2021-09-07 23:26:21 +08:00
|
|
|
|
|
|
|
end)
|