From 5e5c1601c2da067472ba24d7d1b05f0f92eba098 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 2 Feb 2022 13:20:25 +0000 Subject: Reviewed some metals commands --- metals.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'metals.vim') diff --git a/metals.vim b/metals.vim index ac44308..ab933bf 100644 --- a/metals.vim +++ b/metals.vim @@ -30,13 +30,14 @@ function! MetalsMapKeys() abort nnoremap rn lua vim.lsp.buf.rename() 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 ws lua vim.diagnostic.setqflist({severity = "W"}) + nnoremap a lua vim.diagnostic.setqflist() " diagnostic navigation nnoremap d lua vim.diagnostic.open_float(0, {scope = "line"}) + nnoremap da lua vim.diagnostic.setloclist() nnoremap dn lua vim.diagnostic.goto_next() - nnoremap dp lua vim.diagnostic.goto_next() + nnoremap dp lua vim.diagnostic.goto_prev() endfunction if has('nvim-0.5') -- cgit v1.2.3