chore(nvim): update mappings
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6b8bfad38d
commit
8d45a4cc6e
13
nvimrc
13
nvimrc
@ -193,14 +193,11 @@ function! OpenGitURLToLineOrRange() range
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
nnoremap <leader>as :Git<cr>
|
nnoremap <leader>gb :Git blame<cr>
|
||||||
nnoremap <leader>ab :Git blame<cr>
|
nnoremap <leader>gf gg0jVG:s/^pick/fixup/<cr> \| :redraw!<cr>:wq
|
||||||
nnoremap <leader>ac :Commits<cr>
|
nnoremap <leader>gy :call CopyGitURLToLineOrRange()<cr>
|
||||||
nnoremap <leader>af gg0jVG:s/^pick/fixup/<cr> \| :redraw!<cr>:wq
|
vnoremap <leader>gy :call CopyGitURLToLineOrRange()<cr>
|
||||||
nnoremap <leader>aY :call CopyGitURLToLineOrRange()<cr>
|
nnoremap <leader>go :call OpenGitURLToLineOrRange()<cr>
|
||||||
vnoremap <leader>aY :call CopyGitURLToLineOrRange()<cr>
|
|
||||||
nnoremap <leader>ao :call OpenGitURLToLineOrRange()<cr>
|
|
||||||
nnoremap <leader>ap :execute 'silent !ghpr <c-r><c-f>' \| redraw!<cr>
|
|
||||||
|
|
||||||
" echo filename of current buffer:
|
" echo filename of current buffer:
|
||||||
nmap <leader>fe :echom expand("%:p")<cr>
|
nmap <leader>fe :echom expand("%:p")<cr>
|
||||||
|
@ -16,9 +16,11 @@ local on_attach = function(client, bufnr)
|
|||||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>r", "<Cmd>lua vim.lsp.buf.references()<CR>", opts)
|
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>r", "<Cmd>lua vim.lsp.buf.references()<CR>", opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>i", "<Cmd>lua vim.lsp.buf.implementation()<CR>", opts)
|
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>i", "<Cmd>lua vim.lsp.buf.implementation()<CR>", opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>ca", "<Cmd>lua vim.lsp.buf.code_action()<CR>", opts)
|
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>ca", "<Cmd>lua vim.lsp.buf.code_action()<CR>", opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, "v", "<leader>ca", "<Cmd>lua vim.lsp.buf.code_action()<CR>", opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>ci", "<Cmd>lua vim.lsp.buf.incoming_calls()<CR>", opts)
|
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>ci", "<Cmd>lua vim.lsp.buf.incoming_calls()<CR>", opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>co", "<Cmd>lua vim.lsp.buf.outgoing_calls()<CR>", opts)
|
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>co", "<Cmd>lua vim.lsp.buf.outgoing_calls()<CR>", opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts)
|
vim.api.nvim_buf_set_keymap(bufnr, "n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, "v", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "]e", '<Cmd>lua vim.diagnostic.goto_next({severity="Error"})<CR>', opts)
|
vim.api.nvim_buf_set_keymap(bufnr, "n", "]e", '<Cmd>lua vim.diagnostic.goto_next({severity="Error"})<CR>', opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "[e", '<Cmd>lua vim.diagnostic.goto_prev({severity="Error"})<CR>', opts)
|
vim.api.nvim_buf_set_keymap(bufnr, "n", "[e", '<Cmd>lua vim.diagnostic.goto_prev({severity="Error"})<CR>', opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "]d", "<Cmd>lua vim.diagnostic.goto_next()<CR>", opts)
|
vim.api.nvim_buf_set_keymap(bufnr, "n", "]d", "<Cmd>lua vim.diagnostic.goto_next()<CR>", opts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user