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 request: add ft field in lsp spec #275

Closed
xiaoshihou514 opened this issue Oct 21, 2023 · 2 comments · Fixed by #276
Closed

feat request: add ft field in lsp spec #275

xiaoshihou514 opened this issue Oct 21, 2023 · 2 comments · Fixed by #276
Assignees
Labels
enhancement New feature or request

Comments

@xiaoshihou514
Copy link

xiaoshihou514 commented Oct 21, 2023

Feature description

Thanks for this great one-stop solution for setting up Haskell dev environment!
This feature request is here because I have sth in my status line that checks if the attached lsp's filetype contains the current buffer's ft. It would be very nice if haskell-tools.nvim provide these so that other plugins/scripts can identify haskell-tools.nvim as a Haskell lsp.

vim.print(vim.lsp.get_active_clients()[1].config.filetype)                                                         
-- Expected: {"haskell", "cabal" ...}
-- Actual: nil
@xiaoshihou514 xiaoshihou514 added the enhancement New feature or request label Oct 21, 2023
@mrcjkb
Copy link
Owner

mrcjkb commented Oct 21, 2023

Hey 👋

Sure, that shouldn't be hard to implement. I'll look into it later today 😊

@mrcjkb mrcjkb self-assigned this Oct 21, 2023
@mrcjkb mrcjkb linked a pull request Oct 21, 2023 that will close this issue
@xiaoshihou514
Copy link
Author

Thank you!

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

Successfully merging a pull request may close this issue.

2 participants