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-11-14 14:50:45 +01:00
|
|
|
use 'phaazon/hop.nvim'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Search
|
2022-03-24 04:45:33 +01:00
|
|
|
use {
|
|
|
|
'junegunn/fzf',
|
|
|
|
run = './install --bin'
|
|
|
|
}
|
|
|
|
use 'junegunn/fzf.vim'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Manage Project sessions
|
2022-01-25 05:47:33 +01:00
|
|
|
use 'rmagatti/auto-session'
|
2021-12-11 07:00:57 +01:00
|
|
|
-- Snippets
|
2021-09-25 07:55:22 +02:00
|
|
|
use {
|
2023-02-02 17:46:49 +01:00
|
|
|
'dcampos/nvim-snippy',
|
2021-09-25 07:55:22 +02:00
|
|
|
requires = {
|
2023-02-02 17:46:49 +01:00
|
|
|
'honza/vim-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'
|
2022-01-15 06:34:18 +01:00
|
|
|
use 'tpope/vim-fugitive'
|
2023-01-12 14:05:52 +01:00
|
|
|
use 'https://github.com/SanchayanMaity/gitlinker.nvim'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Boost vim command line mode
|
|
|
|
use 'vim-utils/vim-husk'
|
|
|
|
-- Quickfix
|
2022-03-24 04:45:33 +01: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',
|
2021-05-21 06:41:56 +02:00
|
|
|
'kana/vim-textobj-user',
|
|
|
|
'idbrii/textobj-word-column.vim',
|
2022-02-05 04:57:03 +01:00
|
|
|
'glts/vim-textobj-comment'
|
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',
|
2023-01-26 07:03:36 +01:00
|
|
|
'tpope/vim-sleuth',
|
2021-10-17 11:01:11 +02:00
|
|
|
'tpope/vim-dispatch'
|
2020-10-28 14:33:37 +01:00
|
|
|
}
|
|
|
|
-- Directory viewer
|
2023-01-09 09:34:25 +01:00
|
|
|
use 'elihunter173/dirbuf.nvim'
|
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'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- LSP
|
2022-08-30 17:24:43 +02:00
|
|
|
use 'kosayoda/nvim-lightbulb'
|
2020-10-28 14:33:37 +01:00
|
|
|
-- Language support & syntax highlighting
|
2021-11-27 12:00:18 +01:00
|
|
|
use 'mfussenegger/nvim-lint'
|
2022-08-06 07:36:25 +02:00
|
|
|
use 'lvimuser/lsp-inlayhints.nvim'
|
2022-11-28 06:29:14 +01:00
|
|
|
use 'sdiehl/vim-cabalfmt'
|
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" },
|
|
|
|
},
|
|
|
|
{
|
2022-11-07 09:27:53 +01:00
|
|
|
"mfussenegger/nvim-treehopper",
|
2021-10-01 15:26:46 +02:00
|
|
|
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
|
|
|
}
|
2021-05-08 09:51:49 +02:00
|
|
|
-- Marks and registers
|
|
|
|
use {
|
2022-05-14 05:06:56 +02:00
|
|
|
'chentoast/marks.nvim',
|
2021-05-08 09:51:49 +02:00
|
|
|
}
|
2021-12-03 15:35:09 +01:00
|
|
|
use 'andymass/vim-matchup'
|
2022-03-25 13:32:38 +01:00
|
|
|
use 'christoomey/vim-tmux-navigator'
|
2022-12-28 06:30:08 +01:00
|
|
|
use {
|
|
|
|
"windwp/nvim-autopairs",
|
|
|
|
config = function()
|
|
|
|
require("nvim-autopairs").setup {}
|
|
|
|
end
|
|
|
|
}
|
|
|
|
use 'gpanders/nvim-parinfer'
|
2020-10-28 14:33:37 +01:00
|
|
|
end
|
2020-10-23 11:55:04 +02:00
|
|
|
|
2022-09-02 09:25:27 +02:00
|
|
|
local config = {
|
|
|
|
git = {
|
|
|
|
subcommands = {
|
|
|
|
update = 'pull --ff-only --progress --rebase=false --no-tags',
|
|
|
|
fetch = 'fetch --depth 999999 --progress --no-tags',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return require('packer').startup(init, config)
|