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

Make integration with xref and capf user configurable #223

Open
BooAA opened this issue Mar 26, 2023 · 0 comments
Open

Make integration with xref and capf user configurable #223

BooAA opened this issue Mar 26, 2023 · 0 comments

Comments

@BooAA
Copy link

BooAA commented Mar 26, 2023

Hi, thanks for the awesome work that makes me more productive everyday.

I'm asking if we can make the integration with xref and capf user configurable options? Since I'm using many similar packages (gtags, cscope, eglot, etc), I don't want each of them adding itself into the xref/capf backend list that might conflict with each other. Currently I'm using a hack to just remove those backend when ggtags-mode is enable. E.g.

(add-hook 'ggtags-mode 
          (lambda ()
            (remove-hook 'xref-backend-functions 'ggtags--xref-backend t)
            (remove-hook 'completion-at-point-functions #'ggtags-completion-at-point t)))

And it works for me without noticeable issue. Base on this, my naive assumption will be that we just need to provide some defcustoms and check the value in https://github.com/leoliu/ggtags/blob/master/ggtags.el#L2209 for whether we are going to enable xref/cape integration or not? I'm not an elisp expert so I'm might be wrong. What do you think?

@BooAA BooAA changed the title Make integration with xref and capf a defcustom Make integration with xref and capf user configurable Mar 26, 2023
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

1 participant