full vim only with display

This commit is contained in:
Chris Dombroski 2024-09-21 20:35:09 -04:00
parent 473f015225
commit 5d49e7a766

View file

@ -1,8 +1,9 @@
{ pkgs, ... }: { pkgs, osConfig, ... }:
{ {
programs.vim = { programs.vim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
packageConfigurable = if osConfig.services.displayManager.enable then pkgs.vim-full else pkgs.vim;
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
vim-sensible vim-sensible
vim-fugitive vim-fugitive