Mappings
Default
Action | Mode | Shortcut | Key Combination | Command |
---|---|---|---|---|
Change Theme | Normal | <Leader>t | Leader + t | :Telescope theme_switcher<CR> |
Show Hover | Normal | <Leader>h | Leader + h | :lua vim.lsp.buf.hover()<CR> |
Show Signature Help | Normal | <Leader>s | Leader + s | :lua vim.lsp.buf.signature_help()<CR> |
Clear Highlighting | Normal | <Leader>l | Leader + l | :noh<CR> |
Format with Neoformat | Normal | <Leader>f | Leader + f | :lua vim.lsp.buf.format()<CR> |
Rename | Normal | <Leader>r | Leader + r | :lua require('renamer').rename()<CR> |
Code Actions | Normal | <Leader>c | Leader + c | :lua require('telescope').extensions.code_actions.code_actions()<CR> |
Toggle NvimTree | Normal, Insert | <C-B> | Ctrl + B | :NvimTreeToggle<CR> |
Open Terminal | Normal, Insert | <C-t> | Ctrl + T | :terminal<CR> |
Cut in Insert Mode | Insert | <C-BS> | Ctrl + Backspace | <C-W> |
Contextual Menu | Normal, Insert, Visual | <RightMouse> | Right Mouse Button | :popup Meteor<CR> |
Split Vertically | Normal | <leader>sv | Leader + sv | :vsp<CR> |
Split Horizontally | Normal | <leader>sh | Leader + sh | :sp<CR> |
Copy to Clipboard | Visual | <C-C> | Ctrl + C | y:lua ClipboardYank()<CR>gv |
Copy to Clipboard | Normal | <C-C> | Ctrl + C | yy:lua ClipboardYank()<CR> |
Paste from Clipboard | Insert | <C-V> | Ctrl + V | :lua ClipboardPaste()<CR>p |
Undo | Normal, Insert | <C-Z> | Ctrl + Z | :u<CR> |
Redo | Normal, Insert | <C-Y> | Ctrl + Y | :redo<CR> |
Select All | Normal, Insert | <C-A> | Ctrl + A | ggVG |
Save | Normal, Insert | <C-S> | Ctrl + S | :retab |
Move Selection Right | Visual | <TAB> | Tab | >gv |
Move Selection Left | Visual | <S-TAB> | Shift + Tab | <gv |
Delete in Visual Mode | Visual | <BS> | Backspace | "_d |
Delete without saving to clipboard | Normal | <C-K> | Ctrl + K | "_dd |
Next/Previous Buffer | Normal | <C-PageDown> / <C-PageUp> | Ctrl + PageDown y Ctrl + PageUp | :BufferLineCycleNext<CR> / :BufferLineCyclePrev<CR> |
Move Buffer Next/Prev | Normal | <C-ScrollWheelUp> / <C-ScrollWheelDown> | Ctrl + Scroll Up y Ctrl + Scroll Down | :BufferLineMoveNext<CR> / :BufferLineMovePrev<CR> |
Toggle Comments | Normal, Insert | <C-7> | Ctrl + 7 | :CommentToggle<CR> |
Move Lines Down/Up | Normal, Insert | <C-Down> / <C-Up> | Ctrl + Down y Ctrl + Up | :m .+1<CR>== / :m .-2<CR>== |
Add Mappings
You can modify or add your own mappings in ~/.config/nvim/lua/userconfig/mappings.lua
Example
mappings.lua
M.map('n', "<C-t>", "<CMD>:terminal<CR>", { silent = true })