Comment by ~lukas-reineke on ~whynothugo/lsp_lines.nvim
Hey ~whynothugo,
I am making progress with v3 of indent blankline. I built a system that would allow other plugins to hook into the logic of indent blankline. Do you want to take a look and see if this would work for you?
The code is on the
v3
branch https://github.com/lukas-reineke/indent-blankline.nvim/tree/v3 This is still very much work in progress. And there is no documentation yet.To try it, you can use this
require("indent_blankline").setup() local hooks = require "indent_blankline.hooks" require("indent_blankline.hooks").register(hooks.TYPE.VIRTUAL_TEXT, function(tick, bufnr, row, virt_text) -- do stuff with the virtual text here return virt_text end)I would guess you would need to have a table of row to IB virtual text per buffer. Then, when you make the virtual text for lsp lines, use the IB virtual text as the base and overwrite it with lsp lines where needed.
Let me know what you think, I'm happy to make changes.