]> git.madduck.net Git - etc/neovim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Implement pastetoggle
authormartin f. krafft <madduck@madduck.net>
Wed, 9 Apr 2025 08:44:37 +0000 (10:44 +0200)
committermartin f. krafft <madduck@madduck.net>
Fri, 11 Apr 2025 18:48:08 +0000 (20:48 +0200)
.config/nvim/init.lua

index 5a35428e6bf018484a461707f7c957cfcd6dd0b9..dc6c0a352b7929fbca432885a5daec14675318a4 100644 (file)
@@ -1,5 +1,7 @@
 vim.opt.background = 'light'
 
 vim.opt.background = 'light'
 
+vim.keymap.set({'n', 'v', 'o', 'i'}, '<F2>', '<cmd>set invpaste<CR>')
+
 vim.call "plug#begin"
 
 local Plug = vim.fn['plug#']
 vim.call "plug#begin"
 
 local Plug = vim.fn['plug#']