I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
716 B

  1. # This file is controlled by /etc/dotfiles/README.org
  2. # This module MUST be included within home manager
  3. { config, options, lib, pkgs, ... }:
  4. with lib;
  5. with lib.types;
  6. let cfg = config.modules.vim;
  7. in {
  8. options.modules.vim = {
  9. enable = mkOption {
  10. type = bool;
  11. default = false;
  12. };
  13. };
  14. config = mkIf cfg.enable {
  15. programs.neovim = {
  16. enable = true;
  17. viAlias = true;
  18. vimAlias = true;
  19. vimdiffAlias = true;
  20. extraConfig = ''
  21. set number relativenumber
  22. set nobackup
  23. '';
  24. extraPackages = [
  25. pkgs.nixfmt
  26. ];
  27. plugins = with pkgs.vimPlugins; [
  28. vim-nix
  29. vim-airline
  30. vim-polyglot
  31. ];
  32. };
  33. };
  34. }