Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
fix(nvim): remove trailing : in inlay hints
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Dec 31, 2022
1 parent 96d6463 commit 25a1dc4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nvim/config/lua/user/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ local inlay_hints = require("inlay-hints")

inlay_hints.setup({
renderer = "inlay-hints/render/eol",
-- https://github.com/simrat39/inlay-hints.nvim/issues/3
eol = {
parameter = {
separator = ", ",
format = function(hints)
return string.format(" <- (%s)", hints):gsub(":", "")
end,
},
type = {
separator = ", ",
format = function(hints)
return string.format(" » (%s)", hints):gsub(":", "")
end,
},
},
})

require("mason").setup()
Expand Down

0 comments on commit 25a1dc4

Please sign in to comment.