nix-configs/home-modules/vim.nix

25 lines
541 B
Nix
Raw Normal View History

{ pkgs, osConfig, ... }:
2024-09-21 20:07:40 -04:00
{
programs.vim = {
enable = true;
defaultEditor = true;
packageConfigurable = pkgs.vim-full.override {
guiSupport = if osConfig.services.displayManager.enable then "gtk3" else "none";
};
2024-09-21 21:50:25 -04:00
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
;
};
2024-09-21 20:07:40 -04:00
};
}