From 4b8caad3b64d383c78280ee0985890c62c42042b Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 30 Sep 2021 14:15:10 +0530 Subject: [PATCH] nvim: plugins: Drop cscope Now that we have migrated to clang LSP for C, the only reason for keeping it around was using it to find files in gst-build repository which was structured in such a way that fzf and rg could not be used. Now that GStreamer has moved to monorepo setup, we can use fzf and rg just like in any project. No need for cscope anymore. --- nvim/.config/nvim/after/ftplugin/c.vim | 16 ---------------- nvim/.config/nvim/init.lua | 2 -- nvim/.config/nvim/lua/plugins.lua | 1 - 3 files changed, 19 deletions(-) diff --git a/nvim/.config/nvim/after/ftplugin/c.vim b/nvim/.config/nvim/after/ftplugin/c.vim index b94bb92..828f491 100644 --- a/nvim/.config/nvim/after/ftplugin/c.vim +++ b/nvim/.config/nvim/after/ftplugin/c.vim @@ -3,22 +3,6 @@ setlocal complete-=i setlocal path+=/usr/include/** setlocal makeprg=ninja\ -C\ build -nnoremap ct :AsyncDo ctags -R --fields=+nS --excmd=number . -nnoremap cu :AsyncDo cscope -bqR -nnoremap cr :cs reset - -nmap s (quickr_cscope_symbols) -nmap g (quickr_cscope_global) -nmap h (quickr_cscope_global_split) -nmap v (quickr_cscope_global_vert_split) -nmap D (quickr_cscope_functions) -nmap c (quickr_cscope_callers) -nmap t (quickr_cscope_text) -nmap e (quickr_cscope_egrep) -nmap f (quickr_cscope_files) -nmap i (quickr_cscope_includes) -nmap a (quickr_cscope_assignments) - " If we are working with any of the gstreamer projects in C, run gst-ident " before saving. Assume gst-ident from gstreamer/tools/gst-indent has been " made available in path. diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index d30a75d..bd60dcb 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -77,8 +77,6 @@ vim.g.maplocalleader = "," vim.g.FerretMap = 0 vim.g.FerretHlsearch = 0 vim.g.FerretAutojump = 0 --- Needs to be set before loading quickr-cscope -vim.g.quickr_cscope_keymaps = 0 -- Needs to be set before vimtex gets loaded, else it complains vim.g.tex_flavor = 'latex' vim.g.vimtex_view_general_viewer = 'zathura' diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index c66da66..da67579 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -47,7 +47,6 @@ local init = function () use 'hauleth/asyncdo.vim' -- Quickfix use 'yssl/QFEnter' - use 'ronakg/quickr-cscope.vim' use 'milkypostman/vim-togglelist' use 'chengzeyi/fzf-preview.vim' -- Text Object plugins