mirror of https://gitlab.com/baco/dotconf.git
fix: Add diagnostic open_float focus option
Made the floating window not focusable to avoid mistakes.
This commit is contained in:
parent
314b10e343
commit
099f247c2e
|
@ -46,11 +46,11 @@ lua << EOF
|
|||
local nvim_lsp = require("lspconfig")
|
||||
|
||||
local on_attach = function(client, bufnr)
|
||||
vim.api.nvim_command("autocmd CursorHoldI <buffer> lua vim.diagnostic.open_float({header = ''})")
|
||||
vim.api.nvim_command("autocmd CursorHoldI <buffer> lua vim.diagnostic.open_float({focusable = false, header = ''})")
|
||||
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||
update_in_insert = true,
|
||||
virtual_text = false
|
||||
virtual_text = { spacing = 24 }
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue