Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
roktas committed Oct 30, 2023
1 parent ab2ed9b commit 3fc6e38
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,19 @@ if vim.env.TMUX then
]])
end

local diag_format = function(d)
return string.format("(%s) %s", d.code, d.message)
end

vim.diagnostic.config({
virtual_text = {
format = diag_format,
},
float = {
format = diag_format,
}
})

------------------------------------------------------------------------------------------------------------------------
-- Commands
------------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 3fc6e38

Please sign in to comment.