refactor: add types to lsp-related pickers#3036
Conversation
|
Just saw there already is #2856 although the contents seem to have a different focus:
I wonder what would be the best thing to do here. 🙂 |
|
unfortunately we decided to build our vimdocumentation based on lua emmy comments, see https://github.com/nvim-telescope/telescope.nvim/blob/master/CONTRIBUTING.md#documentation-with-treesitter its currently autogenerated and merging this would result in us loosing this feature, which is imo more important than having types for lsp (at this point in time). I know its nice but we basically have redo parts of the grammar and the docgen algorithm or we have to drop docgen. |
|
I see - this must be the reason I was not getting any help from the LSP. I thought it was a syntax error and "easily fixable" 🙂 I noticed there has already been some interest in adding support for a new grammar tjdevries/tree-sitter-lua#52. If you're open to that idea in the future, it might be a promising option. But I think that might take weeks or months. I think it's not worth it to keep this open at this point. I'll close these PRs, and in case that future materializes, I can always reopen/redo them. |
Description
This change
require("telescope.builtin").lsp_definitions({ jump_type = "vsplit" })in my config (link to my config: mikavilpas/dotfiles@0f6c0e5)Type of change
How Has This Been Tested?
As the change only changes the lua annotations, I have tested that the LSP features are now available. Details below:
The hover documentation I got before this change
I also got no other features such as autocompletion.
The effect after applying the change
Hover documentation now works

Autocompletion also works for sum types

Configuration:
NVIM v0.10.0-dev-2799+ge016f5beeChecklist: