Custom indent character for blank lines #664
-
Is it possible to use a custom character that only applies to blank lines? This was trivial to set with E.g.:
|
Beta Was this translation helpful? Give feedback.
Answered by
lukas-reineke
Oct 1, 2023
Replies: 1 comment 3 replies
-
This feature was removed to simplify the logic, but you can use hooks to implement it yourself local hooks = require "ibl.hooks"
hooks.register(hooks.type.VIRTUAL_TEXT, function(_, bufnr, row, virt_text)
local line = vim.api.nvim_buf_get_lines(bufnr, row, row + 1, false)[1]
if line == "" then
for _, v in ipairs(virt_text) do
if v[1] == "│" then
v[1] = "┊"
end
end
end
return virt_text
end) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
lukas-reineke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This feature was removed to simplify the logic, but you can use hooks to implement it yourself
This is a basic example