aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-10-24 22:53:03 +0200
committerAdrian Kummerlaender2019-10-24 22:53:03 +0200
commit2e71eace9c283415b554ef40d7fd2bc18b047d2b (patch)
treeb20fca009a92ea937acb6e9da60545c59fcd8f7f
parenta1a39d2015629dc36ac4619299d5d7b55a799172 (diff)
downloadnixos_home-2e71eace9c283415b554ef40d7fd2bc18b047d2b.tar
nixos_home-2e71eace9c283415b554ef40d7fd2bc18b047d2b.tar.gz
nixos_home-2e71eace9c283415b554ef40d7fd2bc18b047d2b.tar.bz2
nixos_home-2e71eace9c283415b554ef40d7fd2bc18b047d2b.tar.lz
nixos_home-2e71eace9c283415b554ef40d7fd2bc18b047d2b.tar.xz
nixos_home-2e71eace9c283415b554ef40d7fd2bc18b047d2b.tar.zst
nixos_home-2e71eace9c283415b554ef40d7fd2bc18b047d2b.zip
Pull in GNvim from unstable
-rw-r--r--custom.nix3
-rw-r--r--gui/vim.nix10
-rw-r--r--home.nix3
3 files changed, 15 insertions, 1 deletions
diff --git a/custom.nix b/custom.nix
index ca0d53c..e489fea 100644
--- a/custom.nix
+++ b/custom.nix
@@ -37,5 +37,8 @@ in {
pkgs = mkOption {
type = types.attrs;
};
+ nixpkgs-unstable = mkOption {
+ type = types.attrs;
+ };
};
}
diff --git a/gui/vim.nix b/gui/vim.nix
index 24ae0b2..7c68e1e 100644
--- a/gui/vim.nix
+++ b/gui/vim.nix
@@ -6,8 +6,12 @@
neovim-qt = pkgs.neovim-qt.override {
neovim = config.custom.pkgs.custom-neovim;
};
+ gnvim = config.custom.nixpkgs-unstable.gnvim.override {
+ neovim = config.custom.pkgs.custom-neovim;
+ };
in [
neovim-qt
+ gnvim
pkgs.xclip # required to access clipboard in nvim-gui
pkgs.fzf # required for all kinds of narrow-down-completion
];
@@ -16,7 +20,12 @@
set title
Guifont! Iosevka:h10
set guifont=Iosevka:h10
+ autocmd FocusGained * :checktime
+ '';
+ file.".config/nvim/gnvim.vim".text = ''
+ set title
+ set guifont=Iosevka:h10
autocmd FocusGained * :checktime
'';
};
@@ -25,6 +34,7 @@
enable = true;
shellAliases = {
nvim-qt = "nvim-qt --no-ext-tabline ^ /dev/null > /dev/null";
+ gnvim = "bash -c \"gnvim --disable-ext-cmdline --disable-ext-tabline -- --cmd \\\"source ~/.config/nvim/gnvim.vim\\\" &> /dev/null & \"";
};
};
}
diff --git a/home.nix b/home.nix
index 38d7aaa..980550e 100644
--- a/home.nix
+++ b/home.nix
@@ -1,7 +1,8 @@
{ config, pkgs, ... }:
{
- custom.pkgs = import <mypkgs> { };
+ custom.pkgs = import ~/projects/dev/pkgs/default.nix { };
+ custom.nixpkgs-unstable = import <nixpkgs-unstable> { };
imports = [
# define options custom to this config