mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-08 21:43:03 -04:00
insane
This commit is contained in:
parent
fa01f65bcd
commit
4c228c8e78
1 changed files with 29 additions and 18 deletions
|
@ -1,20 +1,31 @@
|
||||||
{pkgs, lib, config, ...}: {
|
{
|
||||||
home = {
|
pkgs,
|
||||||
packages = with pkgs; [
|
config,
|
||||||
neovim
|
...
|
||||||
];
|
}:
|
||||||
file = {
|
let
|
||||||
nvim = {
|
pager_cmd_var = ''nvim -R +\"nmap q <CMD>q\!<CR>\"'';
|
||||||
recursive = true;
|
pager_cmd_alias = ''nvim -R +"nmap q <CMD>q!<CR>"'';
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos/dotfiles/nvim";
|
in
|
||||||
target = "./.config/nvim";
|
{
|
||||||
};
|
home = {
|
||||||
};
|
packages = with pkgs; [
|
||||||
sessionVariables = {
|
neovim
|
||||||
EDITOR = "nvim";
|
];
|
||||||
MANPAGER = "nvim +Man!";
|
file = {
|
||||||
# readonly, quit on q
|
nvim = {
|
||||||
PAGER = "nvim -R +\"nmap q <CMD>q!<CR>\"";
|
recursive = true;
|
||||||
};
|
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos/dotfiles/nvim";
|
||||||
|
target = "./.config/nvim";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
MANPAGER = "nvim +Man!";
|
||||||
|
PAGER = pager_cmd_var;
|
||||||
|
};
|
||||||
|
shellAliases = {
|
||||||
|
pager = pager_cmd_alias;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue