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,
|
2022-04-09 21:42:39 +08:00
|
|
|
compile_on_sync = true,
|
|
|
|
auto_reload_compiled = true
|
2021-09-07 23:26:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
return require('packer').startup(function(use)
|
2022-04-03 23:22:30 +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
|
2022-03-26 11:12:30 +08:00
|
|
|
use {
|
2022-04-03 23:22:30 +08:00
|
|
|
'b4skyx/serenade',
|
2022-03-26 11:12:30 +08:00
|
|
|
after = 'packer.nvim',
|
2022-03-26 12:16:23 +08:00
|
|
|
config = function()
|
|
|
|
vim.g.serenade_enable_italic = 1
|
2022-05-09 11:25:29 +08:00
|
|
|
vim.g.serenade_sign_column_background = 'none'
|
2022-04-03 23:22:30 +08:00
|
|
|
vim.g.serenade_better_performance = 1
|
2022-03-26 12:16:23 +08:00
|
|
|
vim.cmd("colorscheme serenade")
|
|
|
|
end
|
2022-03-26 11:12:30 +08:00
|
|
|
}
|
2021-09-15 15:18:15 +08:00
|
|
|
use {'kyazdani42/nvim-web-devicons', after = 'packer.nvim'}
|
|
|
|
use {
|
2022-05-12 21:36:31 +08:00
|
|
|
'nvim-lualine/lualine.nvim',
|
2022-04-03 23:22:30 +08:00
|
|
|
after = {'serenade', 'nvim-web-devicons'},
|
2021-09-15 15:18:15 +08:00
|
|
|
config = function() require "plugins.statusline" end
|
|
|
|
}
|
2021-09-07 23:26:21 +08:00
|
|
|
|
2021-09-15 15:18:15 +08:00
|
|
|
-- lsp stuff
|
2021-12-01 21:21:16 +08:00
|
|
|
use {'neovim/nvim-lspconfig', event = "BufEnter"}
|
2021-09-27 11:56:17 +08:00
|
|
|
use {
|
2021-12-01 21:21:16 +08:00
|
|
|
'williamboman/nvim-lsp-installer',
|
2021-09-27 11:56:17 +08:00
|
|
|
config = function() require "plugins.lspinstall" end,
|
|
|
|
after = 'nvim-lspconfig'
|
|
|
|
}
|
2022-05-12 21:36:31 +08:00
|
|
|
use {
|
|
|
|
"ray-x/lsp_signature.nvim",
|
|
|
|
after = "nvim-lsp-installer",
|
|
|
|
config = function() require "plugins.lsp_signature" end
|
|
|
|
}
|
2021-09-27 11:56:17 +08:00
|
|
|
|
2021-10-25 12:10:08 +08:00
|
|
|
-- tree sitter
|
2021-09-15 15:18:15 +08:00
|
|
|
use {
|
|
|
|
'nvim-treesitter/nvim-treesitter',
|
2022-04-03 23:22:30 +08:00
|
|
|
event = "UIEnter",
|
2021-09-15 15:18:15 +08:00
|
|
|
config = function() require "plugins.treesitter" end,
|
|
|
|
run = ':TSUpdate'
|
|
|
|
}
|
2021-09-27 11:56:17 +08:00
|
|
|
|
2021-10-25 12:10:08 +08:00
|
|
|
-- completer
|
2021-09-15 15:18:15 +08:00
|
|
|
use {
|
|
|
|
'ms-jpq/coq_nvim',
|
|
|
|
branch = 'coq',
|
2021-12-01 21:21:16 +08:00
|
|
|
after = 'nvim-lsp-installer',
|
2021-09-15 15:18:15 +08:00
|
|
|
run = ':COQdeps',
|
|
|
|
config = function() require "plugins.coq" end
|
|
|
|
}
|
2022-04-09 21:42:39 +08:00
|
|
|
use {'ms-jpq/coq.artifacts', 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") {
|
2022-04-03 23:22:30 +08:00
|
|
|
{src = "nvimlua", short_name = "nLUA"}, {src = "repl"},
|
|
|
|
{src = "vimtex", short_name = "vTEX"}
|
2021-09-18 08:55:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
end
|
|
|
|
}
|
2021-09-15 15:18:15 +08:00
|
|
|
-- formating and editing
|
|
|
|
use {"sbdchd/neoformat", cmd = "Neoformat"}
|
|
|
|
use {
|
|
|
|
"mattn/emmet-vim",
|
2022-04-03 23:22:30 +08:00
|
|
|
ft = {'html', 'htmldjango', 'css', 'markdown'},
|
2021-09-15 15:18:15 +08:00
|
|
|
setup = function() require "plugins.emmet" end
|
|
|
|
}
|
2022-04-03 23:22:30 +08:00
|
|
|
use {"machakann/vim-sandwich", event = "BufEnter"}
|
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",
|
2022-04-03 23:22:30 +08:00
|
|
|
event = "BufEnter",
|
2021-09-15 15:18:15 +08:00
|
|
|
config = function() require("plugins.nvim-autopairs") end
|
|
|
|
}
|
2021-09-27 13:00:44 +08:00
|
|
|
|
2021-09-15 15:18:15 +08:00
|
|
|
-- navigation
|
|
|
|
use {
|
|
|
|
'kyazdani42/nvim-tree.lua',
|
|
|
|
cmd = 'NvimTreeToggle',
|
2021-09-27 11:56:17 +08:00
|
|
|
requires = 'kyazdani42/nvim-web-devicons',
|
|
|
|
config = function() require("plugins.nvim-tree") end
|
2021-09-15 15:18:15 +08:00
|
|
|
}
|
|
|
|
use {
|
|
|
|
"vimwiki/vimwiki",
|
|
|
|
cmd = "VimwikiIndex",
|
|
|
|
setup = function() require "plugins.vimwiki" end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'andymass/vim-matchup',
|
|
|
|
after = 'nvim-treesitter',
|
|
|
|
config = function() require "plugins.matchup" end
|
|
|
|
}
|
2022-05-26 10:10:36 +08:00
|
|
|
-- Lua
|
|
|
|
use {
|
|
|
|
'abecodes/tabout.nvim',
|
|
|
|
config = function() require('tabout').setup {} end,
|
|
|
|
after = {'nvim-treesitter', 'nvim-autopairs', 'coq_nvim'} -- if a completion plugin is using tabs load it before
|
|
|
|
}
|
2021-09-15 15:18:15 +08:00
|
|
|
use {
|
|
|
|
'nvim-telescope/telescope.nvim',
|
|
|
|
requires = {{'nvim-lua/plenary.nvim'}},
|
2022-05-03 14:36:01 +08:00
|
|
|
config = function() require "plugins.telescope" end,
|
2021-09-15 15:18:15 +08:00
|
|
|
cmd = 'Telescope'
|
|
|
|
}
|
2021-11-13 15:29:17 +08:00
|
|
|
use {'preservim/tagbar', cmd = 'TagbarToggle'}
|
2021-09-15 15:18:15 +08:00
|
|
|
use {
|
|
|
|
'phaazon/hop.nvim',
|
2022-04-03 23:22:30 +08:00
|
|
|
event = "UIEnter",
|
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
|
2021-11-13 16:10:05 +08:00
|
|
|
use {
|
|
|
|
"Pocco81/TrueZen.nvim",
|
|
|
|
cmd = {'TZAtaraxis', 'TZFocus', 'TZMinimalist'},
|
2021-12-01 21:21:16 +08:00
|
|
|
config = function() require "plugins.truezen" end
|
2021-11-13 16:10:05 +08:00
|
|
|
}
|
2021-09-15 15:18:15 +08:00
|
|
|
use {
|
|
|
|
"lukas-reineke/indent-blankline.nvim",
|
2022-05-28 23:54:46 +08:00
|
|
|
after = {"nvim-treesitter", "nvim-treesitter-context"},
|
|
|
|
event = "UIEnter",
|
2021-09-15 15:18:15 +08:00
|
|
|
config = function() require "plugins.indent-blankline" end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
requires = {'nvim-lua/plenary.nvim'},
|
2021-10-25 12:10:08 +08:00
|
|
|
config = function() require "plugins.gitsigns" end
|
2021-09-15 15:18:15 +08:00
|
|
|
}
|
|
|
|
use {
|
|
|
|
'p00f/nvim-ts-rainbow',
|
2021-11-13 15:29:17 +08:00
|
|
|
after = "nvim-treesitter",
|
|
|
|
config = function() require "plugins.nvim-ts-rainbow" end
|
2021-09-15 15:18:15 +08:00
|
|
|
}
|
2022-05-26 10:10:36 +08:00
|
|
|
use {
|
|
|
|
'nvim-treesitter/nvim-treesitter-context',
|
|
|
|
after = "nvim-treesitter",
|
|
|
|
config = function()
|
|
|
|
require'treesitter-context'.setup {
|
|
|
|
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
|
|
|
|
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
|
|
|
|
patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries.
|
|
|
|
-- For all filetypes
|
|
|
|
-- Note that setting an entry here replaces all other patterns for this entry.
|
|
|
|
-- By setting the 'default' entry below, you can control which nodes you want to
|
|
|
|
-- appear in the context window.
|
|
|
|
default = {
|
|
|
|
'class', 'function', 'method', 'for', -- These won't appear in the context
|
|
|
|
'while', 'if', 'switch', 'case'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}
|
2021-09-15 15:18:15 +08:00
|
|
|
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',
|
2022-04-03 23:22:30 +08:00
|
|
|
after = "packer.nvim",
|
|
|
|
config = function() require "plugins.nvim-colorizer" end
|
2021-09-15 15:18:15 +08:00
|
|
|
}
|
2021-09-09 19:55:32 +08:00
|
|
|
|
2021-09-15 15:18:15 +08:00
|
|
|
-- integrations
|
|
|
|
use {"tpope/vim-fugitive", cmd = "G"}
|
2022-05-12 21:36:31 +08:00
|
|
|
use {"JuanCldCmt/glow.nvim", branch = 'main', cmd = {"Glow", "GlowInstall"}}
|
2021-09-07 23:26:21 +08:00
|
|
|
end)
|