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

feat: Add support for accessing attached buffer number via subscribeAttach callback or LspointsAttach autocmd #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mityu
Copy link
Contributor

@mityu mityu commented Oct 12, 2024

This PR adds support for getting attached buffer number information while hooks invoked when LSP is attached to some buffer:

  • Callbacks of subscribeAttach is fired with two arguments: client name and attached buffer number.
  • LspointsAttach autocmd is fired in this form: LspointsAttach:{server-name}:{attached-buffer-number}

Please tell me if we should use another style for the accessing way of bufnr, e.g. give a utility function/variable to get attached bufnr information instead of changing LspointsAttach autocmd pattern.

@mityu mityu changed the title Add support for accessing attached buffer number via subscribeAttach callback or LspointsAttach autocmd feat: Add support for accessing attached buffer number via subscribeAttach callback or LspointsAttach autocmd Oct 12, 2024
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

Successfully merging this pull request may close these issues.

1 participant