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.
This commit is contained in:
Sanchayan Maity 2021-09-30 14:15:10 +05:30
parent 0a21f7d979
commit 4b8caad3b6
3 changed files with 0 additions and 19 deletions

View File

@ -3,22 +3,6 @@ setlocal complete-=i
setlocal path+=/usr/include/**
setlocal makeprg=ninja\ -C\ build
nnoremap <buffer> <LocalLeader>ct :AsyncDo ctags -R --fields=+nS --excmd=number .<CR>
nnoremap <buffer> <LocalLeader>cu :AsyncDo cscope -bqR<CR>
nnoremap <buffer> <LocalLeader>cr :cs reset<CR>
nmap <buffer> <silent> <LocalLeader>s <Plug>(quickr_cscope_symbols)
nmap <buffer> <silent> <LocalLeader>g <Plug>(quickr_cscope_global)
nmap <buffer> <silent> <LocalLeader>h <Plug>(quickr_cscope_global_split)
nmap <buffer> <silent> <LocalLeader>v <Plug>(quickr_cscope_global_vert_split)
nmap <buffer> <silent> <LocalLeader>D <Plug>(quickr_cscope_functions)
nmap <buffer> <silent> <LocalLeader>c <Plug>(quickr_cscope_callers)
nmap <buffer> <silent> <LocalLeader>t <Plug>(quickr_cscope_text)
nmap <buffer> <silent> <LocalLeader>e <Plug>(quickr_cscope_egrep)
nmap <buffer> <silent> <LocalLeader>f <Plug>(quickr_cscope_files)
nmap <buffer> <silent> <LocalLeader>i <Plug>(quickr_cscope_includes)
nmap <buffer> <silent> <LocalLeader>a <Plug>(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.

View File

@ -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'

View File

@ -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