Make diag float not focusable

This commit is contained in:
Hartmann 2024-03-20 11:26:52 +01:00
parent a6c3075787
commit 2e0c412f67

View File

@ -350,7 +350,7 @@ return {
local diag_group = vim.api.nvim_create_augroup('lsp_diagnostic_float', { clear = false })
vim.api.nvim_create_autocmd({ 'CursorHold' }, {
callback = function()
vim.diagnostic.open_float({scope = 'line'}, { focus = false })
vim.diagnostic.open_float({scope = 'line', focusable = false}, { focus = false })
end,
group = diag_group,
desc = 'Document Highlight',