add neovide
This commit is contained in:
parent
c66ebccca1
commit
430affc22b
2 changed files with 25 additions and 0 deletions
|
@ -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
23
nixos/nvim/neovide.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue