You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated this plugin to the latest version using my plugin manager
I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.
Additional information
No response
The text was updated successfully, but these errors were encountered:
## Details
Issue: #421
This was a known issue since computing the indentation level requires us
to be in the `markdown` language tree, which `latex` is separated from
by 2 levels, `markdown` -> `markdown-inline` -> `latex`. Going between
language trees is not possible directly from the node.
To get around this we get the closest markdown node to the latex node's
position via:
```lua
vim.treesitter.get_node({
bufnr = buf,
pos = { node.start_row, node.start_col },
lang = 'markdown',
})
```
Then using this node we can compute the indent using the `Indent`
module. This became a lot easier after separating this logic from the
`Base` render parent class, so we don't need to do any weird extension
for `latex` rendering.
Also modified the latex handler to create a class instance similar to
the other builtin handlers. Renamed all handler implementations to use
`run` for the main method name instead of `parse`.
Neovim version (nvim -v)
0.12.0
Neovim distribution
N/A
Operating system
Kubuntu 24.04.2
Terminal emulator / GUI
kitty
Describe the bug
As you can see in the image the latex rendering isn't respecting the indentation
Expected behavior
The latex rendering should be indented just like everything else
Healthcheck output
Plugin configuration
Plugin error log
Confirmations
Additional information
No response
The text was updated successfully, but these errors were encountered: