idk what all...
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user