add neovide

This commit is contained in:
cswimr 2025-02-10 06:21:22 -06:00
parent c66ebccca1
commit 430affc22b
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 25 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

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

@ -0,0 +1,23 @@
{
programs.neovide = {
enable = true;
settings = {
font = {
normal = [ "ComicCodeLigatures Nerd Font" ];
size = 12;
};
};
};
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
'';
};
}