🔧 Added shortcut for adding backslashes
This commit is contained in:
parent
fc54b42915
commit
c4bcc944ca
1 changed files with 5 additions and 0 deletions
|
|
@ -93,6 +93,11 @@ vim.keymap.set("n", "<leader>r", ":silent :Rg")
|
|||
--toggle autocompletion
|
||||
vim.cmd([[nnoremap cmp :silent lua SetAutoCmp(Mode)]])
|
||||
|
||||
-- appends backslash to end of specified number of lines (min 2)
|
||||
-- usage: 4<leader>b will append a backslash to the end of 4 lines
|
||||
-- note: useful for grabbing code snippets for chatting with codellama in terminal
|
||||
vim.cmd([[nnoremap <leader>b :.,+<C-R>=v:count1<CR>norm A\<Esc>]])
|
||||
|
||||
--toggle undotree
|
||||
vim.keymap.set("n", "<leader>u", ":UndotreeToggle<cr>")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue