home: vim: lua: lsp: remove diagnostic on hover
This commit is contained in:
parent
29daa555a3
commit
6cdbd6bb29
|
@ -21,17 +21,6 @@ M.on_attach = function(client, bufnr)
|
||||||
severity_sort = true,
|
severity_sort = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Show diagnostics on "hover"
|
|
||||||
local augroup = vim.api.nvim_create_augroup("DiagnosticsHover", {})
|
|
||||||
vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr })
|
|
||||||
vim.api.nvim_create_autocmd({"CursorHold", "CursorHoldI"}, {
|
|
||||||
group = augroup,
|
|
||||||
buffer = bufnr,
|
|
||||||
callback = function()
|
|
||||||
vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Format on save
|
-- Format on save
|
||||||
lsp_format.on_attach(client, bufnr)
|
lsp_format.on_attach(client, bufnr)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue