diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-02-02 13:20:25 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-05-29 22:57:31 +0100 |
commit | 5e5c1601c2da067472ba24d7d1b05f0f92eba098 (patch) | |
tree | 1242bfdbf1ef9dca71685947f48aa57222d92c4c | |
parent | d6c32c6796792f181167d68164863170f84c096c (diff) | |
download | dotnvim-5e5c1601c2da067472ba24d7d1b05f0f92eba098.tar.gz dotnvim-5e5c1601c2da067472ba24d7d1b05f0f92eba098.zip |
Reviewed some metals commands
-rw-r--r-- | metals.vim | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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') |