home: vim: lua: lsp: remove diagnostic on hover

This commit is contained in:
Bruno BELANYI 2023-05-02 21:05:04 +01:00
parent 29daa555a3
commit 6cdbd6bb29

View file

@ -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)