add neovide

This commit is contained in:
cswimr 2025-02-10 06:21:22 -06:00
parent c66ebccca1
commit a70da5cf37
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
4 changed files with 28 additions and 0 deletions

View file

@ -1,7 +1,9 @@
{ lib, config, ... }:
{
imports = [
./keymaps.nix
./settings.nix
./neovide.nix
./plugins/autoclose.nix
./plugins/cmp.nix

14
nixos/nvim/neovide.nix Normal file
View file

@ -0,0 +1,14 @@
{
programs.nixvim = {
extraConfigLua = # lua
''
if vim.g.neovide then
vim.keymap.set('v', '<C-S-c>', '"+y') -- Copy
vim.keymap.set('n', '<C-S-v>', '"+P') -- Paste normal mode
vim.keymap.set('v', '<C-S-v>', '"+P') -- Paste visual mode
vim.keymap.set('c', '<C-S-v>', '<C-R>+') -- Paste command mode
vim.keymap.set('i', '<C-S-v>', '<ESC>l"+Pli') -- Paste insert mode
end
'';
};
}