aboutsummaryrefslogtreecommitdiff
path: root/gui/vim.nix
blob: 27f2e5af01bbdee176b6a5fedf22fefd60c3d6ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ config, pkgs, ... }:

{
  home = {
    packages = let
      neovim-qt = pkgs.neovim-qt.override {
        neovim = config.custom.pkgs.custom-neovim;
      };
    in [
      neovim-qt
      pkgs.xclip # required to access clipboard in nvim-gui
      pkgs.fzf   # required for all kinds of narrow-down-completion
    ];

    file.".config/nvim/ginit.vim".text = ''
      set title
      Guifont! Iosevka:h10
      set guifont=Iosevka:h10
      autocmd FocusGained * :checktime
    '';
  };

  programs.fish = {
    enable = true;
    shellAliases = {
      nvim-qt = "nvim-qt --no-ext-tabline ^ /dev/null > /dev/null";
    };
  };
}