diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-08-10 07:07:19 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-08-10 07:07:19 +0100 |
commit | 4b485f866a6c798917c9d557a9696a8b4f819d68 (patch) | |
tree | ce10e0b79266bc14eb556d6d6897344e4c43bf17 | |
parent | d3f02d2c489d7b52643f5f08a1aa5c641c61e158 (diff) | |
download | dotnvim-4b485f866a6c798917c9d557a9696a8b4f819d68.tar.gz dotnvim-4b485f866a6c798917c9d557a9696a8b4f819d68.zip |
Some extra commands I may run often
-rw-r--r-- | metals.vim | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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> |