diff options
-rw-r--r-- | custom.nix | 3 | ||||
-rw-r--r-- | gui/vim.nix | 10 | ||||
-rw-r--r-- | home.nix | 3 |
3 files changed, 15 insertions, 1 deletions
@@ -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 & \""; }; }; } @@ -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 |