Skip to content

Commit

Permalink
Update /lua/core/keymaps.lua (pastetoggle)
Browse files Browse the repository at this point in the history
  • Loading branch information
brainfucksec committed Jun 25, 2022
1 parent 74c65dd commit 0260a43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--[[
Neovim init file
Version: 0.62.0 - 2022/06/07
Version: 0.63.0 - 2022/06/25
Maintainer: brainf+ck
Website: https://github.com/brainfucksec/neovim-lua
Expand Down
4 changes: 4 additions & 0 deletions nvim/lua/core/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ map('i', 'kk', '<Esc>')
-- Clear search highlighting with <leader> and c
map('n', '<leader>c', ':nohl<CR>')

-- Toggle auto-indenting for code paste
map('n', '<F2>', ':set invpaste paste?<CR>')
vim.opt.pastetoggle = '<F2>'

-- Change split orientation
map('n', '<leader>tk', '<C-w>t<C-w>K') -- change vertical to horizontal
map('n', '<leader>th', '<C-w>t<C-w>H') -- change horizontal to vertical
Expand Down

0 comments on commit 0260a43

Please sign in to comment.