aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
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 & \"";
};
};
}