nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

commit d63636220a1e0c2a52f0de872d1ceebcd9ad5162
parent 8ef55ad40b1564e522d711a746406e37b0072a8a
Author: Peter <peter@minskio.co.uk>
Date:   Fri,  2 Oct 2026 16:27:05 +0100

Allow Ctrl+V pasting in Neovim

Diffstat:
Mhome/neovim.nix | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/home/neovim.nix b/home/neovim.nix @@ -46,9 +46,13 @@ in autocmd BufWritepre * %s/\n\+\%$//e ''; initLua = '' + -- Keybinds + vim.keymap.set('i', '<C-v>', '<C-r>+', { desc = 'Paste from system clipboard' }) + vim.keymap.set('c', '<C-v>', '<C-r>+', { desc = 'Paste from system clipboard (cmdline)' }) + -- Plugins in ../scripts/neovim-* require("sortblock").setup() require("lastmod") - + -- Uppercase/Lowercase functions vim.api.nvim_create_user_command("Uppercase", function() vim.cmd("'<,'>s/.*/\\U&/") end, { range = true })