From 7735a33a598cf698646883ad9ae185b7b1926ab7 Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 6 Dec 2021 11:40:45 +0800 Subject: [PATCH] remove plugin gutentags I rarely use it. --- core/plugins.vim | 8 -------- docs/README.md | 2 +- lua/plugins.lua | 13 ++++++++----- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/core/plugins.vim b/core/plugins.vim index 69f071b..db00112 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -133,14 +133,6 @@ if g:is_win || g:is_mac xmap ob (openbrowser-smart-search) endif -""""""""""""""""""""""""""" gutentags settings """""""""""""""""""""""""""""" -" The path to store tags files, instead of in the project root. -let g:gutentags_cache_dir = stdpath('cache') . '/ctags' -let g:gutentags_ctags_extra_args = ['--fields=+niazS', '--extra=+q'] -let g:gutentags_ctags_extra_args += ['--c++-kinds=+px'] -let g:gutentags_ctags_extra_args += ['--c-kinds=+px'] -let g:gutentags_ctags_exclude = ['*.md', '*.html', '*.json', '*.toml', '*.css', '*.js',] - """"""""""""""""""""""""""" vista settings """""""""""""""""""""""""""""""""" let g:vista#renderer#icons = { \ 'member': '', diff --git a/docs/README.md b/docs/README.md index 3aceffc..625ab6f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -78,7 +78,7 @@ and make sure you can call `git` from the command line. ## ctags -In order to use tags related plugins such as [vista.vim](https://github.com/liuchengxu/vista.vim) and [gutentags](https://github.com/ludovicchabant/vim-gutentags), we need to +In order to use tags related plugins such as [vista.vim](https://github.com/liuchengxu/vista.vim), we need to install a ctags distribution. Universal-ctags is preferred. To install ctags on macOS, use [Homebrew](https://github.com/universal-ctags/homebrew-universal-ctags): diff --git a/lua/plugins.lua b/lua/plugins.lua index 6362560..4b8b9c3 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -90,11 +90,11 @@ require("packer").startup({ end use { - 'nvim-telescope/telescope.nvim', + 'nvim-telescope/telescope.nvim', cmd = 'Telescope', requires = { {'nvim-lua/plenary.nvim'} } } -- search emoji and other symbols - use 'nvim-telescope/telescope-symbols.nvim' + use {'nvim-telescope/telescope-symbols.nvim', after = 'telescope.nvim'} -- Another similar plugin is command-t -- use 'wincent/command-t' @@ -150,8 +150,6 @@ require("packer").startup({ -- Only install these plugins if ctags are installed on the system if utils.executable("ctags") then - -- plugin to manage your tags - use({"ludovicchabant/vim-gutentags", event = "VimEnter"}) -- show file tags in vim window use({"liuchengxu/vista.vim", cmd = "Vista"}) end @@ -313,7 +311,12 @@ require("packer").startup({ use({"gelguy/wilder.nvim", opt = true, setup = [[vim.cmd('packadd wilder.nvim')]]}) -- showing keybindings - use {"folke/which-key.nvim", event = "VimEnter", config = [[require('config.which-key')]]} + 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'}