-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Hi, great plugin!
It'd be nice if this plugin could wrap TS types in a markdown symbols, like:
Type
```ts
{
field: number
}
```
Is not assignable to `number`
So other plugins like noice.nvim
could highlight the diagnostic popup using treesitter for example
I think there're two ways to implement it:
- Direct option like
format = 'markdown'
, while the current behaviour isformat = 'plain'
or something - Two generic functions for formatting blocks and inlines, line:
format = {
inline = function (text) return '`' .. text .. '`',
block = function (text)
return '```ts\n' .. text .. '\n```'
return
}
Second approach is more difficult, because we'd need to choose what data to pass in function parameters (is text
already prettified? How to handle nested indentation?)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request