aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-10-24 22:53:03 +0200
committerAdrian Kummerlaender2019-10-24 22:53:03 +0200
commit2e71eace9c283415b554ef40d7fd2bc18b047d2b (patch)
treeb20fca009a92ea937acb6e9da60545c59fcd8f7f /gui
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
Diffstat (limited to 'gui')
-rw-r--r--gui/vim.nix10
1 files changed, 10 insertions, 0 deletions
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 & \"";
};
};
}