aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-09-08 20:35:34 +0800
committerjdhao <jdhao@hotmail.com>2022-09-08 20:35:34 +0800
commitb69320b4e2656d80e00b36f9e986ba8f1bf5c0da (patch)
tree113c4baeaa94e5861c935c5c2ece4349e004b631
parent5c63ade4a05dc02d9e644080ef1f1c98c3f859e0 (diff)
remove unused plugins
-rw-r--r--lua/plugins.lua163
1 files changed, 68 insertions, 95 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 5575430..8d8cc0c 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -31,32 +31,30 @@ local packer_util = require('packer.util')
packer.startup({
function(use)
-- it is recommended to put impatient.nvim before any other plugins
- use {'lewis6991/impatient.nvim', config = [[require('impatient')]]}
+ use { 'lewis6991/impatient.nvim', config = [[require('impatient')]] }
- use({"wbthomason/packer.nvim", opt = true})
+ use({ "wbthomason/packer.nvim", opt = true })
- use({"onsails/lspkind-nvim", event = "VimEnter"})
+ use({ "onsails/lspkind-nvim", event = "VimEnter" })
-- auto-completion engine
- use {"hrsh7th/nvim-cmp", after = "lspkind-nvim", config = [[require('config.nvim-cmp')]]}
+ use { "hrsh7th/nvim-cmp", after = "lspkind-nvim", config = [[require('config.nvim-cmp')]] }
-- nvim-cmp completion sources
- use {"hrsh7th/cmp-nvim-lsp", after = "nvim-cmp"}
- -- use {"hrsh7th/cmp-nvim-lua", after = "nvim-cmp"}
- use {"hrsh7th/cmp-path", after = "nvim-cmp"}
- use {"hrsh7th/cmp-buffer", after = "nvim-cmp"}
+ use { "hrsh7th/cmp-nvim-lsp", after = "nvim-cmp" }
+ use { "hrsh7th/cmp-path", after = "nvim-cmp" }
+ use { "hrsh7th/cmp-buffer", after = "nvim-cmp" }
use { "hrsh7th/cmp-omni", after = "nvim-cmp" }
-
- -- use {"hrsh7th/cmp-cmdline", after = "nvim-cmp"}
- use {"quangnguyen30192/cmp-nvim-ultisnips", after = {'nvim-cmp', 'ultisnips'}}
+ use { "quangnguyen30192/cmp-nvim-ultisnips", after = { 'nvim-cmp', 'ultisnips' } }
if vim.g.is_mac then
- use {"hrsh7th/cmp-emoji", after = 'nvim-cmp'}
+ use { "hrsh7th/cmp-emoji", after = 'nvim-cmp' }
end
-- nvim-lsp configuration (it relies on cmp-nvim-lsp, so it should be loaded after cmp-nvim-lsp).
use({ "neovim/nvim-lspconfig", after = "cmp-nvim-lsp", config = [[require('config.lsp')]] })
if vim.g.is_mac then
- use({ "nvim-treesitter/nvim-treesitter", event = 'BufEnter', run = ":TSUpdate", config = [[require('config.treesitter')]] })
+ use({ "nvim-treesitter/nvim-treesitter", event = 'BufEnter', run = ":TSUpdate",
+ config = [[require('config.treesitter')]] })
end
-- Python indent (follows the PEP8 style)
@@ -65,7 +63,7 @@ packer.startup({
-- Python-related text object
use({ "jeetsukumaran/vim-pythonsense", ft = { "python" } })
- use({"machakann/vim-swap", event = "VimEnter"})
+ use({ "machakann/vim-swap", event = "VimEnter" })
-- IDE for Lisp
if utils.executable("sbcl") then
@@ -82,58 +80,45 @@ packer.startup({
end
}
- -- Clear highlight search automatically for you
- -- use({"romainl/vim-cool", event = "VimEnter"})
-
-- Show match number and index for searching
use {
'kevinhwang91/nvim-hlslens',
branch = 'main',
- keys = {{'n', '*'}, {'n', '#'}, {'n', 'n'}, {'n', 'N'}},
+ keys = { { 'n', '*' }, { 'n', '#' }, { 'n', 'n' }, { 'n', 'N' } },
config = [[require('config.hlslens')]]
}
-- Stay after pressing * and search selected text
- use({"haya14busa/vim-asterisk", event = 'VimEnter'})
+ use({ "haya14busa/vim-asterisk", event = 'VimEnter' })
-- File search, tag search and more
if vim.g.is_win then
- use({"Yggdroot/LeaderF", cmd = "Leaderf"})
+ use({ "Yggdroot/LeaderF", cmd = "Leaderf" })
else
use({ "Yggdroot/LeaderF", cmd = "Leaderf", run = ":LeaderfInstallCExtension" })
end
use {
'nvim-telescope/telescope.nvim', cmd = 'Telescope',
- requires = { {'nvim-lua/plenary.nvim'} }
+ requires = { { 'nvim-lua/plenary.nvim' } }
}
-- search emoji and other symbols
- use {'nvim-telescope/telescope-symbols.nvim', after = 'telescope.nvim'}
-
- -- Another similar plugin is command-t
- -- use 'wincent/command-t'
-
- -- Another grep tool (similar to Sublime Text Ctrl+Shift+F)
- -- use 'dyng/ctrlsf.vim'
-
- -- A grepping tool
- -- use {'mhinz/vim-grepper', cmd = {'Grepper', '<plug>(GrepperOperator)'}}
+ use { 'nvim-telescope/telescope-symbols.nvim', after = 'telescope.nvim' }
-- A list of colorscheme plugin you may want to try. Find what suits you.
- use({"lifepillar/vim-gruvbox8", opt = true})
- use({"navarasu/onedark.nvim", opt = true})
- use({"sainnhe/edge", opt = true})
- use({"sainnhe/sonokai", opt = true})
- use({"sainnhe/gruvbox-material", opt = true})
- use({"shaunsingh/nord.nvim", opt = true})
- use({"NTBBloodbath/doom-one.nvim", opt = true})
- use({"sainnhe/everforest", opt = true})
- use({"EdenEast/nightfox.nvim", opt = true})
- use({"rebelot/kanagawa.nvim", opt = true})
- use({"catppuccin/nvim", as = "catppuccin", opt = true})
-
-
- use {'kyazdani42/nvim-web-devicons', event = 'VimEnter'}
+ use({ "lifepillar/vim-gruvbox8", opt = true })
+ use({ "navarasu/onedark.nvim", opt = true })
+ use({ "sainnhe/edge", opt = true })
+ use({ "sainnhe/sonokai", opt = true })
+ use({ "sainnhe/gruvbox-material", opt = true })
+ use({ "shaunsingh/nord.nvim", opt = true })
+ use({ "NTBBloodbath/doom-one.nvim", opt = true })
+ use({ "sainnhe/everforest", opt = true })
+ use({ "EdenEast/nightfox.nvim", opt = true })
+ use({ "rebelot/kanagawa.nvim", opt = true })
+ use({ "catppuccin/nvim", as = "catppuccin", opt = true })
+
+ use { 'kyazdani42/nvim-web-devicons', event = 'VimEnter' }
use {
'nvim-lualine/lualine.nvim',
@@ -153,7 +138,7 @@ packer.startup({
})
-- Highlight URLs inside vim
- use({"itchyny/vim-highlighturl", event = "VimEnter"})
+ use({ "itchyny/vim-highlighturl", event = "VimEnter" })
-- notification plugin
use({
@@ -168,47 +153,45 @@ packer.startup({
-- not be possible since we maybe in a server which disables GUI.
if vim.g.is_win or vim.g.is_mac then
-- open URL in browser
- use({"tyru/open-browser.vim", event = "VimEnter"})
+ use({ "tyru/open-browser.vim", event = "VimEnter" })
end
-- Only install these plugins if ctags are installed on the system
if utils.executable("ctags") then
-- show file tags in vim window
- use({"liuchengxu/vista.vim", cmd = "Vista"})
+ use({ "liuchengxu/vista.vim", cmd = "Vista" })
end
-- Snippet engine and snippet template
- use({"SirVer/ultisnips", event = 'InsertEnter'})
- use({ "honza/vim-snippets", after = 'ultisnips'})
+ use({ "SirVer/ultisnips", event = 'InsertEnter' })
+ use({ "honza/vim-snippets", after = 'ultisnips' })
-- Automatic insertion and deletion of a pair of characters
- use({"Raimondi/delimitMate", event = "InsertEnter"})
+ use({ "Raimondi/delimitMate", event = "InsertEnter" })
-- Comment plugin
- use({"tpope/vim-commentary", event = "VimEnter"})
+ use({ "tpope/vim-commentary", event = "VimEnter" })
-- Multiple cursor plugin like Sublime Text?
-- use 'mg979/vim-visual-multi'
-- Autosave files on certain events
- use({"907th/vim-auto-save", event = "InsertEnter"})
+ use({ "907th/vim-auto-save", event = "InsertEnter" })
-- Show undo history visually
- use({"simnalamburt/vim-mundo", cmd = {"MundoToggle", "MundoShow"}})
+ use({ "simnalamburt/vim-mundo", cmd = { "MundoToggle", "MundoShow" } })
-- Manage your yank history
if vim.g.is_win or vim.g.is_mac then
- use({"svermeulen/vim-yoink", event = "VimEnter"})
+ use({ "svermeulen/vim-yoink", event = "VimEnter" })
end
-- Handy unix command inside Vim (Rename, Move etc.)
- use({"tpope/vim-eunuch", cmd = {"Rename", "Delete"}})
+ use({ "tpope/vim-eunuch", cmd = { "Rename", "Delete" } })
-- Repeat vim motions
- use({"tpope/vim-repeat", event = "VimEnter"})
+ use({ "tpope/vim-repeat", event = "VimEnter" })
- -- Show the content of register in preview window
- -- Plug 'junegunn/vim-peekaboo'
use({ "nvim-zh/better-escape.vim", event = { "InsertEnter" } })
if vim.g.is_mac then
@@ -217,34 +200,31 @@ packer.startup({
use({ "Neur1n/neuims", event = { "InsertEnter" } })
end
- -- Syntax check and make
- -- use 'neomake/neomake'
-
-- Auto format tools
use({ "sbdchd/neoformat", cmd = { "Neoformat" } })
- -- use 'Chiel92/vim-autoformat'
-- Git command inside vim
- use({ "tpope/vim-fugitive", event = "User InGitRepo", config = [[require('config.fugitive')]]})
+ use({ "tpope/vim-fugitive", event = "User InGitRepo", config = [[require('config.fugitive')]] })
-- Better git log display
use({ "rbong/vim-flog", requires = "tpope/vim-fugitive", cmd = { "Flog" } })
- use({ "christoomey/vim-conflicted", requires = "tpope/vim-fugitive", cmd = {"Conflicted"}})
+ use({ "christoomey/vim-conflicted", requires = "tpope/vim-fugitive", cmd = { "Conflicted" } })
use {
- 'ruifm/gitlinker.nvim',
- requires = 'nvim-lua/plenary.nvim',
- event = "User InGitRepo",
- config = [[require('config.git-linker')]]
+ 'ruifm/gitlinker.nvim',
+ requires = 'nvim-lua/plenary.nvim',
+ event = "User InGitRepo",
+ config = [[require('config.git-linker')]]
}
- use({ "kevinhwang91/nvim-bqf", ft = "qf", config = [[require('config.bqf')]] })
-- Show git change (change, delete, add) signs in vim sign column
use({ 'lewis6991/gitsigns.nvim', config = [[require('config.gitsigns')]] })
-- Better git commit experience
- use({"rhysd/committia.vim", opt = true, setup = [[vim.cmd('packadd committia.vim')]]})
+ use({ "rhysd/committia.vim", opt = true, setup = [[vim.cmd('packadd committia.vim')]] })
+
+ use({ "kevinhwang91/nvim-bqf", ft = "qf", config = [[require('config.bqf')]] })
-- Another markdown plugin
use({ "plasticboy/vim-markdown", ft = { "markdown" } })
@@ -269,31 +249,27 @@ packer.startup({
})
end
- use({'folke/zen-mode.nvim', cmd = 'ZenMode', config = [[require('config.zen-mode')]]})
+ use({ 'folke/zen-mode.nvim', cmd = 'ZenMode', config = [[require('config.zen-mode')]] })
if vim.g.is_mac then
use({ "rhysd/vim-grammarous", ft = { "markdown" } })
end
- use({"chrisbra/unicode.vim", event = "VimEnter"})
+ use({ "chrisbra/unicode.vim", event = "VimEnter" })
-- Additional powerful text object for vim, this plugin should be studied
-- carefully to use its full power
- use({"wellle/targets.vim", event = "VimEnter"})
+ use({ "wellle/targets.vim", event = "VimEnter" })
-- Plugin to manipulate character pairs quickly
- -- use 'tpope/vim-surround'
- use({"machakann/vim-sandwich", event = "VimEnter"})
+ use({ "machakann/vim-sandwich", event = "VimEnter" })
-- Add indent object for vim (useful for languages like Python)
- use({"michaeljsmith/vim-indent-object", event = "VimEnter"})
+ use({ "michaeljsmith/vim-indent-object", event = "VimEnter" })
-- Only use these plugin on Windows and Mac and when LaTeX is installed
if vim.g.is_win or vim.g.is_mac and utils.executable("latex") then
use({ "lervag/vimtex", ft = { "tex" } })
-
- -- use {'matze/vim-tex-fold', ft = {'tex', }}
- -- use 'Konfekt/FastFold'
end
-- Since tmux is only available on Linux and Mac, we only enable these plugins
@@ -304,10 +280,9 @@ packer.startup({
end
-- Modern matchit implementation
- use({"andymass/vim-matchup", event = "VimEnter"})
+ use({ "andymass/vim-matchup", event = "VimEnter" })
-- Smoothie motions
- -- use 'psliwka/vim-smoothie'
use({
"karb94/neoscroll.nvim",
event = "VimEnter",
@@ -316,12 +291,10 @@ packer.startup({
end
})
- use({"tpope/vim-scriptease", cmd = {"Scriptnames", "Message", "Verbose"}})
+ use({ "tpope/vim-scriptease", cmd = { "Scriptnames", "Message", "Verbose" } })
-- Asynchronous command execution
use({ "skywind3000/asyncrun.vim", opt = true, cmd = { "AsyncRun" } })
- -- Another asynchronous plugin
- -- Plug 'tpope/vim-dispatch'
use({ "cespare/vim-toml", ft = { "toml" }, branch = "main" })
@@ -341,25 +314,25 @@ packer.startup({
end
-- Session management plugin
- use({"tpope/vim-obsession", cmd = 'Obsession'})
+ use({ "tpope/vim-obsession", cmd = 'Obsession' })
if vim.g.is_linux then
- use({"ojroques/vim-oscyank", cmd = {'OSCYank', 'OSCYankReg'}})
+ use({ "ojroques/vim-oscyank", cmd = { 'OSCYank', 'OSCYankReg' } })
end
-- The missing auto-completion for cmdline!
- use({"gelguy/wilder.nvim", opt = true, setup = [[vim.cmd('packadd wilder.nvim')]]})
+ use({ "gelguy/wilder.nvim", opt = true, setup = [[vim.cmd('packadd wilder.nvim')]] })
-- showing keybindings
- use {"folke/which-key.nvim",
- event = "VimEnter",
- config = function()
- vim.defer_fn(function() require('config.which-key') end, 2000)
- end
+ use { "folke/which-key.nvim",
+ event = "VimEnter",
+ config = function()
+ vim.defer_fn(function() require('config.which-key') end, 2000)
+ end
}
-- show and trim trailing whitespaces
- use {'jdhao/whitespace.nvim', event = 'VimEnter'}
+ use { 'jdhao/whitespace.nvim', event = 'VimEnter' }
-- file explorer
use {
@@ -370,7 +343,7 @@ packer.startup({
use { 'ii14/emmylua-nvim', ft = 'lua' }
- use { 'j-hui/fidget.nvim', after = 'nvim-lspconfig', config = [[require('config.fidget-nvim')]]}
+ use { 'j-hui/fidget.nvim', after = 'nvim-lspconfig', config = [[require('config.fidget-nvim')]] }
end,
config = {
max_jobs = 16,