Built-in support for cscope removed, so add plugin
dblume

dblume commited on 2024-04-08 22:09:54
Showing 1 changed files, with 4 additions and 16 deletions.


Neovim dropped built-in support for cscope.

I don't think I need cscope everywhere, so just leave a note to myself
that I can install cscope if I want it.
... ...
@@ -328,22 +328,10 @@ set omnifunc=syntaxcomplete#Complete
328 328
 " Omni completion via ctrl-space (in addition to ctrl-x ctrl-o)
329 329
 inoremap <C-Space> <C-x><C-o>
330 330
 
331
-" cscope
332
-if has("cscope")
333
-    set cscopetag  " Use both cscope and ctag for 'ctrl-]'
334
-    set csto=1     " 0=cscope first; 1=ctags first
335
-    set cscopequickfix=s-,c-,d-,i-,t-,e-,a- " cscope to quickfix window
336
-
337
-    set nocsverb
338
-    " add any database in current directory
339
-    if filereadable("cscope.out")
340
-        cs add cscope.out
341
-    " else add database pointed to by environment
342
-    elseif $CSCOPE_DB != ""
343
-        cs add $CSCOPE_DB
344
-    endif
345
-    set csverb
346
-endif
331
+" See https://wiki.dlma.com/neovim#cscope
332
+"lua << EOF
333
+"require("cscope_maps").setup()
334
+"EOF
347 335
 
348 336
 " From https://stackoverflow.com/questions/15393301/how-to-automatically-sort-quickfix-entries-by-line-text-in-vim
349 337
 " :grep term %
350 338