-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiagnostics.lua
More file actions
34 lines (33 loc) · 1016 Bytes
/
diagnostics.lua
File metadata and controls
34 lines (33 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-- Apply diagnostic config globally after all plugins have loaded
vim.api.nvim_create_autocmd("VimEnter", {
callback = function()
-- Give time for LazyVim and plugins to initialize
vim.defer_fn(function()
-- Force diagnostic configuration directly
vim.diagnostic.config({
virtual_text = true,
signs = true,
underline = true,
update_in_insert = false,
severity_sort = true,
float = {
focusable = false,
style = "minimal",
border = "rounded",
source = "always",
header = "",
prefix = "",
},
})
-- Explicitly set up hover diagnostics
vim.o.updatetime = 250
vim.cmd([[
augroup DiagnosticHover
autocmd!
autocmd CursorHold * lua vim.diagnostic.open_float(nil, {focus=false})
augroup END
]])
end, 1000) -- 1 second delay to ensure everything is loaded
end,
once = true
})