mrcjkb / haskell-tools.nvim

🦥 Supercharge your Haskell experience in neovim!
GNU General Public License v2.0
448 stars 17 forks source link

feat request: add ft field in lsp spec #275

Closed xiaoshihou514 closed 10 months ago

xiaoshihou514 commented 10 months ago

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
mrcjkb commented 10 months ago

Hey 👋

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

xiaoshihou514 commented 10 months ago

Thank you!