chore: update keymap docs
This commit is contained in:
parent
85094f82ab
commit
a5807ed93c
4 changed files with 35 additions and 16 deletions
2
.zshrc
2
.zshrc
|
|
@ -36,7 +36,7 @@ alias :q='exit'
|
||||||
alias gh='git push origin'
|
alias gh='git push origin'
|
||||||
alias gl='git pull origin'
|
alias gl='git pull origin'
|
||||||
alias gm='git commit -m'
|
alias gm='git commit -m'
|
||||||
|
alias g+='bear -- g++ -Wextra -Werror -std=c++20'
|
||||||
|
|
||||||
# zoxide
|
# zoxide
|
||||||
## =============================================================================
|
## =============================================================================
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,7 @@
|
||||||
## Nerd Tree
|
## Nerd Tree
|
||||||
| key | Description |
|
| key | Description |
|
||||||
| --- | ------------------------- |
|
| --- | ------------------------- |
|
||||||
| t |toggle open |
|
| f |toggle open |
|
||||||
| f | focus tree |
|
|
||||||
|
|
||||||
## buffer switching
|
## buffer switching
|
||||||
| key | Description |
|
| key | Description |
|
||||||
|
|
@ -37,6 +36,16 @@
|
||||||
| fb | find buffers |
|
| fb | find buffers |
|
||||||
| fh | help for functions etc |
|
| fh | help for functions etc |
|
||||||
| fp | find projects |
|
| fp | find projects |
|
||||||
|
| fb | file browser |
|
||||||
|
|
||||||
|
### telescope git
|
||||||
|
| key | Description |
|
||||||
|
| ---------- | ------------------------- |
|
||||||
|
| <leader>gq | show commits |
|
||||||
|
| <leader>gw | show commits with diff |
|
||||||
|
| <leader>ge | show branches |
|
||||||
|
| <leader>gr | show git status |
|
||||||
|
| <leader>ga | show git stash |
|
||||||
|
|
||||||
### project telescope
|
### project telescope
|
||||||
<table> <tr> <th> normal mode </th> <th> insert mode </th></tr>
|
<table> <tr> <th> normal mode </th> <th> insert mode </th></tr>
|
||||||
|
|
@ -87,13 +96,14 @@ Note, these require the cmp list view to be open to do anything!
|
||||||
## LSP
|
## LSP
|
||||||
| key | Description |
|
| key | Description |
|
||||||
| ----------- | ---------------------- |
|
| ----------- | ---------------------- |
|
||||||
| Leader + h | go to declaration |
|
| Leader + a | go to declaration |
|
||||||
| Leader + j | go to definition |
|
| Leader + s | go to definition |
|
||||||
| Leader + k | go to implementation |
|
| Leader + d | go to type definitions |
|
||||||
| Leader + l | go to references |
|
| Leader + f | go to references |
|
||||||
| Leader + ; | execute code actions |
|
| Leader + q | execute code actions |
|
||||||
| Leader + u | signature help |
|
| Leader + w | signature help |
|
||||||
| Leader + g | hover |
|
| Leader + e | hover |
|
||||||
|
| Leader + r | rename |
|
||||||
|
|
||||||
## snippets
|
## snippets
|
||||||
These require you to be inside a snippet!
|
These require you to be inside a snippet!
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,20 @@ keymap("n", "<F2>", ":BufferNext<CR>", opts)
|
||||||
|
|
||||||
-- formatting
|
-- formatting
|
||||||
keymap("n", "<F4>", ":lua vim.lsp.buf.format { async = true }<CR>", opts)
|
keymap("n", "<F4>", ":lua vim.lsp.buf.format { async = true }<CR>", opts)
|
||||||
keymap("n", "<leader>q", ":Telescope lsp_definitions<CR>", opts)
|
keymap("n", "<leader>a", ":Telescope lsp_definitions<CR>", opts)
|
||||||
keymap("n", "<leader>w", ":Telescope lsp_references<CR>", opts)
|
keymap("n", "<leader>s", ":Telescope lsp_references<CR>", opts)
|
||||||
keymap("n", "<leader>e", ":Telescope lsp_type_definitions<CR>", opts)
|
keymap("n", "<leader>d", ":Telescope lsp_type_definitions<CR>", opts)
|
||||||
keymap("n", "<leader>a", ":lua vim.lsp.buf.code_action()<CR>", opts)
|
keymap("n", "<leader>f", ":Telescope lsp_implementations<CR>", opts)
|
||||||
keymap("n", "<leader>s", ":lua vim.lsp.buf.signature_help()<CR>", opts)
|
keymap("n", "<leader>q", ":lua vim.lsp.buf.code_action()<CR>", opts)
|
||||||
|
keymap("n", "<leader>w", ":lua vim.lsp.buf.signature_help()<CR>", opts)
|
||||||
|
keymap("n", "<leader>e", ":lua vim.lsp.buf.hover()<CR>", opts)
|
||||||
|
keymap("n", "<leader>r", ":lua vim.lsp.buf.rename()<CR>", opts)
|
||||||
|
keymap("n", "<leader>gq", ":lua require('telescope.builtin').git_commits()<CR>", opts)
|
||||||
|
keymap("n", "<leader>gw", ":lua require('telescope.builtin').git_bcommits()<CR>", opts)
|
||||||
|
keymap("n", "<leader>ge", ":lua require('telescope.builtin').git_branches()<CR>", opts)
|
||||||
|
keymap("n", "<leader>gr", ":lua require('telescope.builtin').git_status()<CR>", opts)
|
||||||
|
keymap("n", "<leader>ga", ":lua require('telescope.builtin').git_stash()<CR>", opts)
|
||||||
|
|
||||||
|
|
||||||
-- harpoon man
|
-- harpoon man
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
vim.cmd("let g:vimtex_quickfix_mode=0")
|
vim.cmd("let g:vimtex_quickfix_mode=0")
|
||||||
vim.cmd("let g:vimtex_view_general_viewer = 'evince'")
|
vim.cmd("let g:vimtex_view_general_viewer = 'evince'")
|
||||||
vim.cmd("let g:vimtex_compiler_method = 'latexmk'")
|
vim.cmd("let g:vimtex_compiler_method = 'latexmk'")
|
||||||
vim.cmd("let g:vimtex_latexmk_options = '-pdf -shell-escape -verbose -file-line-error -synctex=1 -interaction=nonstopmode'")
|
vim.cmd("let g:vimtex_compiler_latexmk = {'options': ['-pdf', '-shell-escape', '-file-line-error', '-synctex=1', '-interaction=nonstopmode',],}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue