Skip to content

Commit

Permalink
change: diagnositic format
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyuga-Tsukui committed Aug 18, 2024
1 parent 514883c commit b186521
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dot_config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ if not vim.g.vscode then
vim.opt.undodir = undodir
vim.opt.undofile = true

vim.diagnostic.config({
virtual_text = {
format = function(diagnostic)
return string.format("%s (%s: %s)", diagnostic.message, diagnostic.source, diagnostic.code)
end,
},
})

-- manage plugins.
vim.cmd.packadd("packer.nvim")
require("packer").startup(function()
Expand Down

0 comments on commit b186521

Please sign in to comment.