my vim setup, as a nix flake
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

3 lat temu
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # tA's vim flake
  2. this is a reproducible setup for my vim setup, including plugins and configuration.
  3. ## installation
  4. requires a system capable of using nix flakes.
  5. in order to try out temporarily:
  6. ```
  7. nix shell github:techieAgnostic/vim --command vim
  8. ```
  9. in order to add to an existing nix flakes configuration, simply add:
  10. ```
  11. inputs.ta-vim.url = "github:techieAgnostic/vim";
  12. ```
  13. which exposes the overlay `ta-vim.overlay` which can be added to your `nixpkgs.overlays`.
  14. the overlay adds the package `ta.vim` which can be used as normal.
  15. ## adding plugins
  16. plugins that exist in the nixpkg's repository can be added by name to the `vimrcConfig.pathogen.pluginNames` list in order to be loaded.
  17. plugins that don't exist in nixpkgs can be added manually, in order to do so, first create an input for the git repository you wish to source from, for example, in order to add hoon highlighting:
  18. ```
  19. inputs.hoon-vim-src = {
  20. url = "github:urbit/urbit";
  21. flake = false;
  22. };
  23. ```
  24. (make sure to add the new `hoon-vim-src` to the `outputs` function arguments.
  25. then add the following to `customPlugins`:
  26. ```
  27. hoon-vim = pkgs.vimUtils.buildVimPlugin {
  28. name = "hoon-vim";
  29. src = hoon-vim-src + "/extras/hoon.vim";
  30. };
  31. ```
  32. (the addition to the src path is for repos that contain a vim plugin among other things, and can be left off unless needed).
  33. now, `hoon-vim` can be added to `vimrcConfig.pathogen.pluginNames` like any other plugin.