line diagnostics is deprecated

After using gl to show line diagnostics I got an error that is is deprecated.
Used code from here to fix it: https://www.reddit.com/r/neovim/comments/qd3v4h/psa_vimdiagnostics_api_has_changed_a_little_bit/
pull/40/head
Markus Müller 3 years ago committed by GitHub
parent 7a082a3306
commit d7f33143c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -76,7 +76,7 @@ local function lsp_keymaps(bufnr)
bufnr,
"n",
"gl",
'<cmd>lua vim.lsp.diagnostic.show_line_diagnostics({ border = "rounded" })<CR>',
'<cmd>lua vim.diagnostic.open_float(0, { border = "rounded" })<CR>',
opts
)
vim.api.nvim_buf_set_keymap(bufnr, "n", "]d", '<cmd>lua vim.diagnostic.goto_next({ border = "rounded" })<CR>', opts)

Loading…
Cancel
Save