1
0
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:
jdhao 2022-09-08 20:35:34 +08:00
parent 5c63ade4a0
commit b69320b4e2

View File

@ -41,12 +41,9 @@ packer.startup({
-- 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 {"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 if vim.g.is_mac then
use { "hrsh7th/cmp-emoji", after = 'nvim-cmp' } use { "hrsh7th/cmp-emoji", after = 'nvim-cmp' }
@ -56,7 +53,8 @@ packer.startup({
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)
@ -82,9 +80,6 @@ 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',
@ -110,15 +105,6 @@ packer.startup({
-- 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 })
@ -132,7 +118,6 @@ packer.startup({
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 {
@ -207,8 +192,6 @@ packer.startup({
-- 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,12 +200,8 @@ 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')]] })
@ -239,13 +218,14 @@ 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" } })
@ -282,7 +262,6 @@ packer.startup({
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)
@ -291,9 +270,6 @@ packer.startup({
-- 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
@ -307,7 +283,6 @@ packer.startup({
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",
@ -320,8 +295,6 @@ packer.startup({
-- 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" })