I have followed this guide: UI Customization · neovim/nvim-lspconfig Wiki · GitHub
But the window closes itself after like a second. Even if I manually run :lua vim.diagnostic.open_float(nil, opts)
it does the same thing. I also have a keymapping to manually trigger the float, same issue. The float window closes itself after like a second.