Skip to content

Commit

Permalink
Add tiny-inline-diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ggs committed Jan 14, 2025
1 parent 96886b7 commit ba06532
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions nvim/.config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"nvim-ts-rainbow": { "branch": "master", "commit": "ef95c15a935f97c65a80e48e12fe72d49aacf9b9" },
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"tiny-inline-diagnostic.nvim": { "branch": "main", "commit": "5922bb3dd691a2a37bd51e20d4a3dc7895221e51" },
"trouble.nvim": { "branch": "main", "commit": "46cf952fc115f4c2b98d4e208ed1e2dce08c9bf6" },
"vim-fugitive": { "branch": "master", "commit": "174230d6a7f2df94705a7ffd8d5413e27ec10a80" },
"vim-gutentags": { "branch": "master", "commit": "aa47c5e29c37c52176c44e61c780032dfacef3dd" },
Expand Down
22 changes: 22 additions & 0 deletions nvim/.config/nvim/lua/plugins/tiny-inline-diagnostic.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
return {
"rachartier/tiny-inline-diagnostic.nvim",
event = "VeryLazy", -- Or `LspAttach`
priority = 1000, -- needs to be loaded in first
config = function()
vim.diagnostic.config({ virtual_text = false })
require("tiny-inline-diagnostic").setup({
preset = "simple",
options = {
show_source = true,
multiple_diag_under_cursor = true,
multilines = {
enabled = true,
always_show = true,
},
break_line = {
enable = true,
},
},
})
end,
}

0 comments on commit ba06532

Please sign in to comment.