mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
remove unused plugins
This commit is contained in:
parent
5c63ade4a0
commit
b69320b4e2
145
lua/plugins.lua
145
lua/plugins.lua
@ -31,32 +31,30 @@ local packer_util = require('packer.util')
|
|||||||
packer.startup({
|
packer.startup({
|
||||||
function(use)
|
function(use)
|
||||||
-- it is recommended to put impatient.nvim before any other plugins
|
-- 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
|
-- 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
|
-- nvim-cmp completion sources
|
||||||
use {"hrsh7th/cmp-nvim-lsp", after = "nvim-cmp"}
|
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-path", after = "nvim-cmp"}
|
use { "hrsh7th/cmp-buffer", after = "nvim-cmp" }
|
||||||
use {"hrsh7th/cmp-buffer", after = "nvim-cmp"}
|
|
||||||
use { "hrsh7th/cmp-omni", after = "nvim-cmp" }
|
use { "hrsh7th/cmp-omni", after = "nvim-cmp" }
|
||||||
|
use { "quangnguyen30192/cmp-nvim-ultisnips", after = { 'nvim-cmp', 'ultisnips' } }
|
||||||
-- use {"hrsh7th/cmp-cmdline", after = "nvim-cmp"}
|
|
||||||
use {"quangnguyen30192/cmp-nvim-ultisnips", after = {'nvim-cmp', 'ultisnips'}}
|
|
||||||
if vim.g.is_mac then
|
if vim.g.is_mac then
|
||||||
use {"hrsh7th/cmp-emoji", after = 'nvim-cmp'}
|
use { "hrsh7th/cmp-emoji", after = 'nvim-cmp' }
|
||||||
end
|
end
|
||||||
|
|
||||||
-- nvim-lsp configuration (it relies on cmp-nvim-lsp, so it should be loaded after cmp-nvim-lsp).
|
-- 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')]] })
|
use({ "neovim/nvim-lspconfig", after = "cmp-nvim-lsp", config = [[require('config.lsp')]] })
|
||||||
|
|
||||||
if vim.g.is_mac then
|
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
|
end
|
||||||
|
|
||||||
-- Python indent (follows the PEP8 style)
|
-- Python indent (follows the PEP8 style)
|
||||||
@ -65,7 +63,7 @@ packer.startup({
|
|||||||
-- Python-related text object
|
-- Python-related text object
|
||||||
use({ "jeetsukumaran/vim-pythonsense", ft = { "python" } })
|
use({ "jeetsukumaran/vim-pythonsense", ft = { "python" } })
|
||||||
|
|
||||||
use({"machakann/vim-swap", event = "VimEnter"})
|
use({ "machakann/vim-swap", event = "VimEnter" })
|
||||||
|
|
||||||
-- IDE for Lisp
|
-- IDE for Lisp
|
||||||
if utils.executable("sbcl") then
|
if utils.executable("sbcl") then
|
||||||
@ -82,58 +80,45 @@ packer.startup({
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Clear highlight search automatically for you
|
|
||||||
-- use({"romainl/vim-cool", event = "VimEnter"})
|
|
||||||
|
|
||||||
-- Show match number and index for searching
|
-- Show match number and index for searching
|
||||||
use {
|
use {
|
||||||
'kevinhwang91/nvim-hlslens',
|
'kevinhwang91/nvim-hlslens',
|
||||||
branch = 'main',
|
branch = 'main',
|
||||||
keys = {{'n', '*'}, {'n', '#'}, {'n', 'n'}, {'n', 'N'}},
|
keys = { { 'n', '*' }, { 'n', '#' }, { 'n', 'n' }, { 'n', 'N' } },
|
||||||
config = [[require('config.hlslens')]]
|
config = [[require('config.hlslens')]]
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Stay after pressing * and search selected text
|
-- 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
|
-- File search, tag search and more
|
||||||
if vim.g.is_win then
|
if vim.g.is_win then
|
||||||
use({"Yggdroot/LeaderF", cmd = "Leaderf"})
|
use({ "Yggdroot/LeaderF", cmd = "Leaderf" })
|
||||||
else
|
else
|
||||||
use({ "Yggdroot/LeaderF", cmd = "Leaderf", run = ":LeaderfInstallCExtension" })
|
use({ "Yggdroot/LeaderF", cmd = "Leaderf", run = ":LeaderfInstallCExtension" })
|
||||||
end
|
end
|
||||||
|
|
||||||
use {
|
use {
|
||||||
'nvim-telescope/telescope.nvim', cmd = 'Telescope',
|
'nvim-telescope/telescope.nvim', cmd = 'Telescope',
|
||||||
requires = { {'nvim-lua/plenary.nvim'} }
|
requires = { { 'nvim-lua/plenary.nvim' } }
|
||||||
}
|
}
|
||||||
-- search emoji and other symbols
|
-- search emoji and other symbols
|
||||||
use {'nvim-telescope/telescope-symbols.nvim', after = 'telescope.nvim'}
|
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)'}}
|
|
||||||
|
|
||||||
-- A list of colorscheme plugin you may want to try. Find what suits you.
|
-- A list of colorscheme plugin you may want to try. Find what suits you.
|
||||||
use({"lifepillar/vim-gruvbox8", opt = true})
|
use({ "lifepillar/vim-gruvbox8", opt = true })
|
||||||
use({"navarasu/onedark.nvim", opt = true})
|
use({ "navarasu/onedark.nvim", opt = true })
|
||||||
use({"sainnhe/edge", opt = true})
|
use({ "sainnhe/edge", opt = true })
|
||||||
use({"sainnhe/sonokai", opt = true})
|
use({ "sainnhe/sonokai", opt = true })
|
||||||
use({"sainnhe/gruvbox-material", opt = true})
|
use({ "sainnhe/gruvbox-material", opt = true })
|
||||||
use({"shaunsingh/nord.nvim", opt = true})
|
use({ "shaunsingh/nord.nvim", opt = true })
|
||||||
use({"NTBBloodbath/doom-one.nvim", opt = true})
|
use({ "NTBBloodbath/doom-one.nvim", opt = true })
|
||||||
use({"sainnhe/everforest", opt = true})
|
use({ "sainnhe/everforest", opt = true })
|
||||||
use({"EdenEast/nightfox.nvim", opt = true})
|
use({ "EdenEast/nightfox.nvim", opt = true })
|
||||||
use({"rebelot/kanagawa.nvim", opt = true})
|
use({ "rebelot/kanagawa.nvim", opt = true })
|
||||||
use({"catppuccin/nvim", as = "catppuccin", opt = true})
|
use({ "catppuccin/nvim", as = "catppuccin", opt = true })
|
||||||
|
|
||||||
|
use { 'kyazdani42/nvim-web-devicons', event = 'VimEnter' }
|
||||||
use {'kyazdani42/nvim-web-devicons', event = 'VimEnter'}
|
|
||||||
|
|
||||||
use {
|
use {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
@ -153,7 +138,7 @@ packer.startup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- Highlight URLs inside vim
|
-- Highlight URLs inside vim
|
||||||
use({"itchyny/vim-highlighturl", event = "VimEnter"})
|
use({ "itchyny/vim-highlighturl", event = "VimEnter" })
|
||||||
|
|
||||||
-- notification plugin
|
-- notification plugin
|
||||||
use({
|
use({
|
||||||
@ -168,47 +153,45 @@ packer.startup({
|
|||||||
-- not be possible since we maybe in a server which disables GUI.
|
-- not be possible since we maybe in a server which disables GUI.
|
||||||
if vim.g.is_win or vim.g.is_mac then
|
if vim.g.is_win or vim.g.is_mac then
|
||||||
-- open URL in browser
|
-- open URL in browser
|
||||||
use({"tyru/open-browser.vim", event = "VimEnter"})
|
use({ "tyru/open-browser.vim", event = "VimEnter" })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Only install these plugins if ctags are installed on the system
|
-- Only install these plugins if ctags are installed on the system
|
||||||
if utils.executable("ctags") then
|
if utils.executable("ctags") then
|
||||||
-- show file tags in vim window
|
-- show file tags in vim window
|
||||||
use({"liuchengxu/vista.vim", cmd = "Vista"})
|
use({ "liuchengxu/vista.vim", cmd = "Vista" })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Snippet engine and snippet template
|
-- Snippet engine and snippet template
|
||||||
use({"SirVer/ultisnips", event = 'InsertEnter'})
|
use({ "SirVer/ultisnips", event = 'InsertEnter' })
|
||||||
use({ "honza/vim-snippets", after = 'ultisnips'})
|
use({ "honza/vim-snippets", after = 'ultisnips' })
|
||||||
|
|
||||||
-- Automatic insertion and deletion of a pair of characters
|
-- Automatic insertion and deletion of a pair of characters
|
||||||
use({"Raimondi/delimitMate", event = "InsertEnter"})
|
use({ "Raimondi/delimitMate", event = "InsertEnter" })
|
||||||
|
|
||||||
-- Comment plugin
|
-- Comment plugin
|
||||||
use({"tpope/vim-commentary", event = "VimEnter"})
|
use({ "tpope/vim-commentary", event = "VimEnter" })
|
||||||
|
|
||||||
-- Multiple cursor plugin like Sublime Text?
|
-- Multiple cursor plugin like Sublime Text?
|
||||||
-- use 'mg979/vim-visual-multi'
|
-- use 'mg979/vim-visual-multi'
|
||||||
|
|
||||||
-- Autosave files on certain events
|
-- Autosave files on certain events
|
||||||
use({"907th/vim-auto-save", event = "InsertEnter"})
|
use({ "907th/vim-auto-save", event = "InsertEnter" })
|
||||||
|
|
||||||
-- Show undo history visually
|
-- Show undo history visually
|
||||||
use({"simnalamburt/vim-mundo", cmd = {"MundoToggle", "MundoShow"}})
|
use({ "simnalamburt/vim-mundo", cmd = { "MundoToggle", "MundoShow" } })
|
||||||
|
|
||||||
-- Manage your yank history
|
-- Manage your yank history
|
||||||
if vim.g.is_win or vim.g.is_mac then
|
if vim.g.is_win or vim.g.is_mac then
|
||||||
use({"svermeulen/vim-yoink", event = "VimEnter"})
|
use({ "svermeulen/vim-yoink", event = "VimEnter" })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Handy unix command inside Vim (Rename, Move etc.)
|
-- 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
|
-- 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" } })
|
use({ "nvim-zh/better-escape.vim", event = { "InsertEnter" } })
|
||||||
|
|
||||||
if vim.g.is_mac then
|
if vim.g.is_mac then
|
||||||
@ -217,20 +200,16 @@ packer.startup({
|
|||||||
use({ "Neur1n/neuims", event = { "InsertEnter" } })
|
use({ "Neur1n/neuims", event = { "InsertEnter" } })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Syntax check and make
|
|
||||||
-- use 'neomake/neomake'
|
|
||||||
|
|
||||||
-- Auto format tools
|
-- Auto format tools
|
||||||
use({ "sbdchd/neoformat", cmd = { "Neoformat" } })
|
use({ "sbdchd/neoformat", cmd = { "Neoformat" } })
|
||||||
-- use 'Chiel92/vim-autoformat'
|
|
||||||
|
|
||||||
-- Git command inside vim
|
-- 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
|
-- Better git log display
|
||||||
use({ "rbong/vim-flog", requires = "tpope/vim-fugitive", cmd = { "Flog" } })
|
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 {
|
use {
|
||||||
'ruifm/gitlinker.nvim',
|
'ruifm/gitlinker.nvim',
|
||||||
@ -239,12 +218,13 @@ packer.startup({
|
|||||||
config = [[require('config.git-linker')]]
|
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
|
-- Show git change (change, delete, add) signs in vim sign column
|
||||||
use({ 'lewis6991/gitsigns.nvim', config = [[require('config.gitsigns')]] })
|
use({ 'lewis6991/gitsigns.nvim', config = [[require('config.gitsigns')]] })
|
||||||
|
|
||||||
-- Better git commit experience
|
-- 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
|
-- Another markdown plugin
|
||||||
use({ "plasticboy/vim-markdown", ft = { "markdown" } })
|
use({ "plasticboy/vim-markdown", ft = { "markdown" } })
|
||||||
@ -269,31 +249,27 @@ packer.startup({
|
|||||||
})
|
})
|
||||||
end
|
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
|
if vim.g.is_mac then
|
||||||
use({ "rhysd/vim-grammarous", ft = { "markdown" } })
|
use({ "rhysd/vim-grammarous", ft = { "markdown" } })
|
||||||
end
|
end
|
||||||
|
|
||||||
use({"chrisbra/unicode.vim", event = "VimEnter"})
|
use({ "chrisbra/unicode.vim", event = "VimEnter" })
|
||||||
|
|
||||||
-- Additional powerful text object for vim, this plugin should be studied
|
-- Additional powerful text object for vim, this plugin should be studied
|
||||||
-- carefully to use its full power
|
-- carefully to use its full power
|
||||||
use({"wellle/targets.vim", event = "VimEnter"})
|
use({ "wellle/targets.vim", event = "VimEnter" })
|
||||||
|
|
||||||
-- Plugin to manipulate character pairs quickly
|
-- 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)
|
-- 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
|
-- 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
|
if vim.g.is_win or vim.g.is_mac and utils.executable("latex") then
|
||||||
use({ "lervag/vimtex", ft = { "tex" } })
|
use({ "lervag/vimtex", ft = { "tex" } })
|
||||||
|
|
||||||
-- use {'matze/vim-tex-fold', ft = {'tex', }}
|
|
||||||
-- use 'Konfekt/FastFold'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Since tmux is only available on Linux and Mac, we only enable these plugins
|
-- Since tmux is only available on Linux and Mac, we only enable these plugins
|
||||||
@ -304,10 +280,9 @@ packer.startup({
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Modern matchit implementation
|
-- Modern matchit implementation
|
||||||
use({"andymass/vim-matchup", event = "VimEnter"})
|
use({ "andymass/vim-matchup", event = "VimEnter" })
|
||||||
|
|
||||||
-- Smoothie motions
|
-- Smoothie motions
|
||||||
-- use 'psliwka/vim-smoothie'
|
|
||||||
use({
|
use({
|
||||||
"karb94/neoscroll.nvim",
|
"karb94/neoscroll.nvim",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
@ -316,12 +291,10 @@ packer.startup({
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
use({"tpope/vim-scriptease", cmd = {"Scriptnames", "Message", "Verbose"}})
|
use({ "tpope/vim-scriptease", cmd = { "Scriptnames", "Message", "Verbose" } })
|
||||||
|
|
||||||
-- Asynchronous command execution
|
-- Asynchronous command execution
|
||||||
use({ "skywind3000/asyncrun.vim", opt = true, cmd = { "AsyncRun" } })
|
use({ "skywind3000/asyncrun.vim", opt = true, cmd = { "AsyncRun" } })
|
||||||
-- Another asynchronous plugin
|
|
||||||
-- Plug 'tpope/vim-dispatch'
|
|
||||||
|
|
||||||
use({ "cespare/vim-toml", ft = { "toml" }, branch = "main" })
|
use({ "cespare/vim-toml", ft = { "toml" }, branch = "main" })
|
||||||
|
|
||||||
@ -341,17 +314,17 @@ packer.startup({
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Session management plugin
|
-- Session management plugin
|
||||||
use({"tpope/vim-obsession", cmd = 'Obsession'})
|
use({ "tpope/vim-obsession", cmd = 'Obsession' })
|
||||||
|
|
||||||
if vim.g.is_linux then
|
if vim.g.is_linux then
|
||||||
use({"ojroques/vim-oscyank", cmd = {'OSCYank', 'OSCYankReg'}})
|
use({ "ojroques/vim-oscyank", cmd = { 'OSCYank', 'OSCYankReg' } })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- The missing auto-completion for cmdline!
|
-- 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
|
-- showing keybindings
|
||||||
use {"folke/which-key.nvim",
|
use { "folke/which-key.nvim",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
config = function()
|
config = function()
|
||||||
vim.defer_fn(function() require('config.which-key') end, 2000)
|
vim.defer_fn(function() require('config.which-key') end, 2000)
|
||||||
@ -359,7 +332,7 @@ packer.startup({
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- show and trim trailing whitespaces
|
-- show and trim trailing whitespaces
|
||||||
use {'jdhao/whitespace.nvim', event = 'VimEnter'}
|
use { 'jdhao/whitespace.nvim', event = 'VimEnter' }
|
||||||
|
|
||||||
-- file explorer
|
-- file explorer
|
||||||
use {
|
use {
|
||||||
@ -370,7 +343,7 @@ packer.startup({
|
|||||||
|
|
||||||
use { 'ii14/emmylua-nvim', ft = 'lua' }
|
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,
|
end,
|
||||||
config = {
|
config = {
|
||||||
max_jobs = 16,
|
max_jobs = 16,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user