SoloVim/lua/plugins/inlay_hints.lua
2024-03-24 11:35:27 +02:00

39 lines
654 B
Lua

return {
"simrat39/inlay-hints.nvim",
opts = {
hints = {
parameter = {
show = true,
highlight = "Comment",
},
type = {
show = true,
highlight = "Comment",
},
},
only_current_line = true,
eol = {
-- whether to align to the extreme right or not
right_align = false,
-- padding from the right if right_align is true
right_align_padding = 7,
parameter = {
separator = ", ",
format = function(hints)
return string.format(" <- (%s)", hints)
end,
},
type = {
separator = ", ",
format = function(hints)
return string.format(" => (%s)", hints)
end,
},
},
},
}