aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-02-02 13:20:25 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:31 +0100
commit5e5c1601c2da067472ba24d7d1b05f0f92eba098 (patch)
tree1242bfdbf1ef9dca71685947f48aa57222d92c4c
parentd6c32c6796792f181167d68164863170f84c096c (diff)
downloaddotnvim-5e5c1601c2da067472ba24d7d1b05f0f92eba098.tar.gz
dotnvim-5e5c1601c2da067472ba24d7d1b05f0f92eba098.zip
Reviewed some metals commands
-rw-r--r--metals.vim7
1 files changed, 4 insertions, 3 deletions
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 <buffer> <leader>rn <cmd>lua vim.lsp.buf.rename()<CR>
nnoremap <buffer> <leader>F <cmd>lua vim.lsp.buf.formatting()<CR>
nnoremap <buffer> <leader>ca <cmd>lua vim.lsp.buf.code_action()<CR>
- nnoremap <buffer> <leader>ws <cmd>lua require'metals'.worksheet_hover()<CR>
- nnoremap <buffer> <leader>a <cmd>lua require'metals'.open_all_diagnostics()<CR>
+ nnoremap <buffer> <leader>ws <cmd>lua vim.diagnostic.setqflist({severity = "W"})<CR>
+ nnoremap <buffer> <leader>a <cmd>lua vim.diagnostic.setqflist()<CR>
" diagnostic navigation
nnoremap <buffer> <leader>d <cmd>lua vim.diagnostic.open_float(0, {scope = "line"})<CR>
+ nnoremap <buffer> <leader>da <cmd>lua vim.diagnostic.setloclist()<CR>
nnoremap <buffer> <leader>dn <cmd>lua vim.diagnostic.goto_next()<CR>
- nnoremap <buffer> <leader>dp <cmd>lua vim.diagnostic.goto_next()<CR>
+ nnoremap <buffer> <leader>dp <cmd>lua vim.diagnostic.goto_prev()<CR>
endfunction
if has('nvim-0.5')