diff options
-rw-r--r-- | gui/pkgs/nvim-gui.nix | 10 | ||||
-rw-r--r-- | gui/vim.nix | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gui/pkgs/nvim-gui.nix b/gui/pkgs/nvim-gui.nix new file mode 100644 index 0000000..7f0ba7e --- /dev/null +++ b/gui/pkgs/nvim-gui.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: + +let + custom_nvim = pkgs.neovim.override { + vimAlias = false; + configure = (import /etc/nixos/pkgs/vim/custom.nix { pkgs = pkgs; }); + }; +in pkgs.neovim-qt.override { + neovim = custom_nvim; +} diff --git a/gui/vim.nix b/gui/vim.nix index 95873ce..cc2d906 100644 --- a/gui/vim.nix +++ b/gui/vim.nix @@ -8,6 +8,17 @@ set linespace=2 set guioptions=agi ''; + + # nvim-qt using vim configuration + packages = let + nvim-gui = import ./pkgs/nvim-gui.nix pkgs; + in [ + nvim-gui + ]; + + file.".config/nvim/ginit.vim".text = '' + Guifont! Iosevka:h10 + ''; }; gtk = { |