idk what all...

This commit is contained in:
2026-06-22 22:06:23 +00:00
parent 97dd524fa3
commit f21da90f44
6 changed files with 56 additions and 18 deletions
+14
View File
@@ -7,3 +7,17 @@ vim.diagnostic.config {
virtual_lines = false,
jump = { float = true },
}
local function open_line_diagnostics()
vim.diagnostic.open_float {
scope = 'line',
focusable = true,
border = 'rounded',
source = 'always',
max_width = math.floor(vim.o.columns * 0.8),
max_height = math.floor(vim.o.lines * 0.5),
}
end
vim.api.nvim_create_user_command('Diag', open_line_diagnostics, { desc = 'Show diagnostics for the current line' })
vim.keymap.set('n', '<leader>d', open_line_diagnostics, { desc = 'Show line [D]iagnostics' })