p00f / clangd_extensions.nvim

Clangd's off-spec features for neovim's LSP client. Use https://sr.ht/~p00f/clangd_extensions.nvim instead
MIT License
448 stars 16 forks source link

Feature request: Arcana #33

Open tyrdal opened 1 year ago

tyrdal commented 1 year ago

I would like to be able to see the full information(arcana in the protocol) of the AST instead of just the simplified ones.

p00f commented 1 year ago

I'm somewhat busy but willing to merge a PR, I think you only have to change

https://github.com/p00f/clangd_extensions.nvim/blob/798e377ec859087132b81d2f347b5080580bd6b1/lua/clangd_extensions/ast.lua#L60

and the describe function

https://github.com/p00f/clangd_extensions.nvim/blob/798e377ec859087132b81d2f347b5080580bd6b1/lua/clangd_extensions/ast.lua#L33

p00f commented 1 year ago

You could either make it configurable or make it such that pressing K on a node shows the arcana. I'm leaning towards the latter but it is more involved.