2020-10-28 14:33:37 +01:00
|
|
|
-- Add the in built Cfilter plugin. Replaces QFGrep.
|
|
|
|
vim.cmd 'packadd cfilter'
|
|
|
|
vim.cmd 'packadd packer.nvim'
|
2020-10-23 11:55:04 +02:00
|
|
|
|
2020-10-28 14:33:37 +01:00
|
|
|
local init = function ()
|
|
|
|
use {'wbthomason/packer.nvim', opt = true}
|
|
|
|
-- Vertical Motion
|
2021-06-16 17:37:02 +02:00
|
|
|
use 'justinmk/vim-sneak'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Search
|
2020-11-05 06:23:10 +01:00
|
|
|
use {
|
|
|
|
'junegunn/fzf',
|
|
|
|
run = './install --bin'
|
|
|
|
}
|
2021-06-16 15:12:19 +02:00
|
|
|
use 'junegunn/fzf.vim'
|
2020-10-28 14:33:37 +01:00
|
|
|
use 'wincent/ferret'
|
2021-05-06 17:45:55 +02:00
|
|
|
use 'bronson/vim-visual-star-search'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Manage Project sessions
|
2021-06-16 17:37:02 +02:00
|
|
|
use 'thaerkh/vim-workspace'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- For autocompletion
|
2021-09-25 07:55:22 +02:00
|
|
|
use {
|
|
|
|
'hrsh7th/nvim-cmp',
|
|
|
|
requires = {
|
|
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
|
|
'hrsh7th/cmp-nvim-lua',
|
|
|
|
'hrsh7th/cmp-buffer',
|
|
|
|
'hrsh7th/cmp-path',
|
2021-10-18 07:13:20 +02:00
|
|
|
'onsails/lspkind-nvim',
|
|
|
|
'L3MON4D3/LuaSnip',
|
|
|
|
'saadparwaiz1/cmp_luasnip',
|
|
|
|
'rafamadriz/friendly-snippets'
|
2021-09-25 07:55:22 +02:00
|
|
|
}
|
|
|
|
}
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Git support
|
2021-09-23 07:32:14 +02:00
|
|
|
use 'lewis6991/gitsigns.nvim'
|
2021-02-01 07:47:23 +01:00
|
|
|
use 'tpope/vim-fugitive'
|
2020-11-17 14:06:45 +01:00
|
|
|
use 'rhysd/git-messenger.vim'
|
2020-12-19 10:27:25 +01:00
|
|
|
use 'whiteinge/diffconflicts'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Boost vim command line mode
|
|
|
|
use 'vim-utils/vim-husk'
|
|
|
|
-- Quickfix
|
2021-04-27 15:43:44 +02:00
|
|
|
use 'yssl/QFEnter'
|
2021-06-16 17:37:02 +02:00
|
|
|
use 'chengzeyi/fzf-preview.vim'
|
2021-10-10 14:33:17 +02:00
|
|
|
use {
|
|
|
|
'https://gitlab.com/yorickpeterse/nvim-pqf',
|
|
|
|
config = function()
|
|
|
|
require('pqf').setup()
|
|
|
|
end
|
|
|
|
}
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Text Object plugins
|
|
|
|
use {
|
|
|
|
'wellle/targets.vim',
|
|
|
|
'tpope/vim-surround',
|
|
|
|
'tommcdo/vim-exchange',
|
2021-05-21 06:41:56 +02:00
|
|
|
'chaoren/vim-wordmotion',
|
|
|
|
'kana/vim-textobj-user',
|
|
|
|
'kana/vim-textobj-entire',
|
|
|
|
'idbrii/textobj-word-column.vim',
|
2020-10-28 14:33:37 +01:00
|
|
|
}
|
2021-10-17 09:31:47 +02:00
|
|
|
use 'numToStr/Comment.nvim'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Tim pope essentials
|
|
|
|
use {
|
|
|
|
'tpope/vim-repeat',
|
2021-10-17 11:01:11 +02:00
|
|
|
'tpope/vim-sleuth',
|
|
|
|
'tpope/vim-dispatch'
|
2020-10-28 14:33:37 +01:00
|
|
|
}
|
|
|
|
-- Directory viewer
|
|
|
|
use 'justinmk/vim-dirvish'
|
|
|
|
-- Show leader key bindings
|
2021-09-26 14:23:32 +02:00
|
|
|
use 'folke/which-key.nvim'
|
2021-10-05 07:41:41 +02:00
|
|
|
--Toggle terminal
|
|
|
|
use 'akinsho/toggleterm.nvim'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Take care of sudo
|
|
|
|
use 'lambdalisue/suda.vim'
|
2020-10-30 07:08:04 +01:00
|
|
|
-- Alignment
|
2021-06-16 17:37:02 +02:00
|
|
|
use 'junegunn/vim-easy-align'
|
2021-06-07 06:55:57 +02:00
|
|
|
use 'nvim-lua/plenary.nvim'
|
|
|
|
use {
|
|
|
|
'jose-elias-alvarez/nvim-lsp-ts-utils',
|
|
|
|
requires = { 'jose-elias-alvarez/null-ls.nvim' }
|
|
|
|
}
|
2020-10-28 14:33:37 +01:00
|
|
|
-- LSP
|
|
|
|
use {
|
|
|
|
'neovim/nvim-lspconfig',
|
2021-07-26 15:14:41 +02:00
|
|
|
'kosayoda/nvim-lightbulb',
|
2020-10-28 14:33:37 +01:00
|
|
|
}
|
|
|
|
-- Language support & syntax highlighting
|
2021-09-26 09:01:15 +02:00
|
|
|
use 'simrat39/rust-tools.nvim'
|
2021-05-13 16:08:37 +02:00
|
|
|
-- Coq
|
|
|
|
use {
|
|
|
|
'whonore/Coqtail',
|
|
|
|
'jlapolla/vim-coq-plugin'
|
|
|
|
}
|
2021-06-26 12:17:07 +02:00
|
|
|
-- treesitter based syntax highlighting
|
2020-10-28 14:33:37 +01:00
|
|
|
use {
|
2021-10-01 15:26:46 +02:00
|
|
|
'nvim-treesitter/nvim-treesitter',
|
|
|
|
requires = {
|
|
|
|
{
|
|
|
|
"nvim-treesitter/playground",
|
|
|
|
after = "nvim-treesitter",
|
|
|
|
cmd = { "TSPlaygroundToggle", "TSHighlightCapturesUnderCursor" },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
|
|
|
module = "nvim-treesitter-textobjects",
|
|
|
|
after = "nvim-treesitter",
|
|
|
|
},
|
|
|
|
},
|
2020-10-28 14:33:37 +01:00
|
|
|
config = "require('treesitter')",
|
2021-10-01 15:26:46 +02:00
|
|
|
run = ':TSUpdate'
|
2020-10-28 14:33:37 +01:00
|
|
|
}
|
2020-12-12 12:50:42 +01:00
|
|
|
-- All writing needs
|
2020-10-28 14:33:37 +01:00
|
|
|
use 'lervag/vimtex'
|
2020-12-12 12:50:42 +01:00
|
|
|
use 'vim-pandoc/vim-pandoc'
|
|
|
|
use 'vim-pandoc/vim-pandoc-syntax'
|
2021-06-26 12:17:07 +02:00
|
|
|
-- Dhall
|
2020-10-28 14:33:37 +01:00
|
|
|
use 'vmchale/dhall-vim'
|
2020-10-29 05:52:53 +01:00
|
|
|
-- For statusline
|
|
|
|
use {
|
2021-09-18 08:38:44 +02:00
|
|
|
'NTBBloodbath/galaxyline.nvim',
|
2020-10-29 05:52:53 +01:00
|
|
|
requires = { 'kyazdani42/nvim-web-devicons' }
|
|
|
|
}
|
2021-05-08 09:51:49 +02:00
|
|
|
-- Marks and registers
|
|
|
|
use {
|
2021-10-13 20:30:39 +02:00
|
|
|
'chentau/marks.nvim',
|
2021-05-08 09:51:49 +02:00
|
|
|
}
|
2021-07-09 17:11:01 +02:00
|
|
|
-- For files with ANSI escape sequences
|
2021-10-02 07:34:41 +02:00
|
|
|
use {
|
|
|
|
'powerman/vim-plugin-AnsiEsc',
|
|
|
|
cmd = 'AnsiEsc'
|
|
|
|
}
|
2020-10-28 14:33:37 +01:00
|
|
|
end
|
2020-10-23 11:55:04 +02:00
|
|
|
|
2020-10-28 14:33:37 +01:00
|
|
|
return require('packer').startup(init)
|