Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim-gutentags E518: Unknown option: cscopeprg=gtags-cscope #1

Closed
fzhzhen1987 opened this issue Apr 8, 2023 · 7 comments
Closed

vim-gutentags E518: Unknown option: cscopeprg=gtags-cscope #1

fzhzhen1987 opened this issue Apr 8, 2023 · 7 comments

Comments

@fzhzhen1987
Copy link

Due to the removal of cscope in nvim 0.9, I have to use the cscope_maps plugin, but
I would like to use the vim-gutentags plugin and request support for vim-gutentags in the cscope_maps.

@dhananjaylatkar
Copy link
Owner

Hi @fzhzhen1987
Can you please elaborate? AFAIK vim-gutentags works with ctags and ctags support is not removed from 0.9.

@dhananjaylatkar
Copy link
Owner

Upon carefully looking into vim-gutentags I realized that it indeed supports cscope.
I have created module for cscope_maps in vim-gutentags and it seems to work. I'll need help to test it by people who actually know their way around vim-gutentags.

I'll open PR soon.

@dhananjaylatkar
Copy link
Owner

@fzhzhen
Copy link

fzhzhen commented Apr 13, 2023

thx. i have found another way to use gtags-cscope. This issue should be closed.

@dhananjaylatkar
Copy link
Owner

Would you mind sharing what you are using so that others can do the same.

Anyway, my new module in vim-gutentags does the job. If anyone's is interested, may use my fork until it's merged in mainline.

@adityaseven
Copy link

@fzhzhen
Please do share I am interested as well

@dhananjaylatkar
Copy link
Owner

Packer config to use my gutentags patch

use({
	"dhananjaylatkar/vim-gutentags",
	after = "cscope_maps.nvim",
	config = function()
		vim.g.gutentags_modules = {"cscope_maps"} -- This is required. Other config is optional
		vim.g.gutentags_cscope_build_inverted_index_maps = 1
		vim.g.gutentags_cache_dir = vim.fn.expand("~/code/.gutentags")
		vim.g.gutentags_file_list_command = "fd -e c -e h"
		-- vim.g.gutentags_trace = 1
	end,
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants