aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-08-10 07:07:19 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-08-10 07:07:19 +0100
commit4b485f866a6c798917c9d557a9696a8b4f819d68 (patch)
treece10e0b79266bc14eb556d6d6897344e4c43bf17
parentd3f02d2c489d7b52643f5f08a1aa5c641c61e158 (diff)
downloaddotnvim-4b485f866a6c798917c9d557a9696a8b4f819d68.tar.gz
dotnvim-4b485f866a6c798917c9d557a9696a8b4f819d68.zip
Some extra commands I may run often
-rw-r--r--metals.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/metals.vim b/metals.vim
index 3b3dadb..42879f2 100644
--- a/metals.vim
+++ b/metals.vim
@@ -23,6 +23,9 @@ function! MetalsMapKeys() abort
nnoremap <buffer> gws <cmd>lua vim.lsp.buf.workspace_symbol()<CR>
nnoremap <buffer> gsh <cmd>lua vim.lsp.buf.signature_help()<CR>
nnoremap <buffer> <leader>rn <cmd>lua vim.lsp.buf.rename()<CR>
+ nnoremap <buffer> <leader>rm <cmd>lua require('metals').restart_server()<CR>
+ nnoremap <buffer> <leader>ib <cmd>lua require('metals').import_build()<CR>
+ nnoremap <buffer> <leader>oi <cmd>lua require('metals').organize_imports()<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>aw <cmd>lua vim.diagnostic.setqflist({severity = "W"})<CR>