Can't properly provide tables to functions.
CabalCrow opened this issue · 1 comments
Describe the bug
Writing a markdown table in documentation, produces a hover where the tables are all on a single line & the space indenting is eaten up (all 2 or more spaces get converted to 1).
To Reproduce
Steps to reproduce the behavior:
In a c++ file create a documentation for a function, include a markdown table & use hover on the function.
Expected behavior
Properly formatted tables.
Desktop (please complete the following information):
- OS: linux 6.6.31-1-lts
- NVIM v0.9.5
- Build type: Release
- LuaJIT 2.1.1713773202
Hi unfortunately this is a known issue. What this plugin does is that it parses the data that it gets from the lsp. If you try getting the same data from the normal vim.lsp.buf.hover() method, instead of table like this
/**
*┌────────────────────┬─────────────┐
*│ Version │ Status │
*├────────────────────┼─────────────┤
*│ nightly-3GLZdn0J │ Installed │
*│ nightly-A7IUdsr1 │ Installed │
*│ v0.9.5 │ Installed │
*│ nightly │ Used │
*│ nightly-xcpkw5xk │ Installed │
*└────────────────────┴─────────────┘
*/
You will receive
┌────────────────────┬─────────────┐ │ Version │ Status │ ├────────────────────┼─────────────┤ │ nightly-3GLZdn0J │ Installed │ │ nightly-A7IUdsr1 │ Installed │ │ v0.9.5 │ Installed │ │ nightly │ Used │ │ nightly-xcpkw5xk │ Installed │ └────────────────────┴─────────────┘
It would be great to fix an issue like this. If you have any Idea how to do this you can create a PR. Otherwise, I'm all ears.