about summary refs log tree commit diff
path: root/assets/tsconfig.json
blob: b082e9685e389d0acd9e640e62e41accedc6bb42 (plain)
1
2
3
4
5
6
{
  "extends": "@tsconfig/svelte/tsconfig.json",

  "include": ["src/**/*"],
  "exclude": ["node_modules/*", "__sapper__/*", "public/*"]
}
B } /* Literal.String.Symbol */ .highlight .bp { color: #DDD } /* Name.Builtin.Pseudo */ .highlight .fm { color: #FF0 } /* Name.Function.Magic */ .highlight .vc { color: #EEDD82 } /* Name.Variable.Class */ .highlight .vg { color: #EEDD82 } /* Name.Variable.Global */ .highlight .vi { color: #EEDD82 } /* Name.Variable.Instance */ .highlight .vm { color: #EEDD82 } /* Name.Variable.Magic */ .highlight .il { color: #F0F } /* Literal.Number.Integer.Long */
{
  lib,
  pkgs,
  auxiliaryPkgs,
  ...
}:

let
  configs = [
    ../configs/.vimrc
    ../configs/plugins.vimrc
  ];

  configVars = {
    "@ycm_extra_conf@" = ../configs/.ycm_extra_conf.py;
  };

  processRCFile =
    f:
    with builtins;
    (replaceStrings
      (lib.attrNames configVars)
      (map toString (lib.attrValues configVars))
      (readFile f));

  customRC = builtins.foldl' (r: f: r + (processRCFile f)) "" configs;

  vim-configured =
    with pkgs;
    vim-full.customize {
      name = "vim"; # explicitly replace vim

      vimrcConfig = {
        inherit customRC;

        packages.collection = with vimPlugins; {
          start = [
            fzf-vim
            vim-fugitive
            vim-gitgutter
            vim-easymotion
            vim-sleuth
            vim-better-whitespace
            vim-tmux-navigator
          ] ++ (with auxiliaryPkgs; [ youcompleteme ]);

          opt = [ ];
        };
      };
    };

in
{
  programs.vim = {
    enable = true;
    defaultEditor = true;

    package = vim-configured;
  };
}