{ 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 vim-fugitive vim-eunuch vim-endwise vim-lsp vim-lsp-settings nerdtree nerdtree-git-plugin vim-devicons editorconfig-vim ; }; }; }