From b7bdc383f0b761d748b4eeace8c0cd8e4af4632b Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 6 Dec 2021 10:58:00 +0000 Subject: Diagnostic navigation --- metals.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'metals.vim') diff --git a/metals.vim b/metals.vim index 8315637..ac0ab4d 100644 --- a/metals.vim +++ b/metals.vim @@ -11,7 +11,11 @@ nnoremap F lua vim.lsp.buf.formatting() nnoremap ca lua vim.lsp.buf.code_action() nnoremap ws lua require'metals'.worksheet_hover() nnoremap a lua require'metals'.open_all_diagnostics() -nnoremap d lua vim.lsp.diagnostic.set_loclist() + +" diagnostic navigation +nnoremap d lua vim.diagnostic.open_float(0, {scope = "line"}) +nnoremap dn lua vim.diagnostic.goto_next() +nnoremap dp lua vim.diagnostic.goto_next() " nvim-lsp Settings " -- cgit v1.2.3