diff --git a/home-modules/vim.nix b/home-modules/vim.nix index 064504e..fee4053 100644 --- a/home-modules/vim.nix +++ b/home-modules/vim.nix @@ -1,8 +1,11 @@ -{ pkgs, ... }: +{ pkgs, osConfig, ... }: { programs.vim = { enable = true; defaultEditor = true; + packageConfigurable = pkgs.vim-full.override { + guiSupport = if osConfig.services.displayManager.enable then "gtk3" else "none"; + }; plugins = builtins.attrValues { inherit (pkgs.vimPlugins) vim-sensible