Commit graph

169 commits

Author SHA1 Message Date
Heitor Augusto
30895485c3 user-configs: add HeitorAugustoLN's configuration 2024-12-17 05:14:41 +00:00
Matt Sturgeon
a658e81d71
docs/config-examples: generate dynamically from a toml list
This should help to maintain uniformity and hopefully make contributions
easier.

Kept regression tests local to the derivation, however these are also
added to the flake checks.
2024-12-15 17:44:56 +00:00
Mykola Halkin
57464f22bb
config-examples: add NikolayGalkin 2024-12-14 22:34:29 +00:00
Austin Horstman
e8e396558b
docs/user-guide: add lazy-loading.md 2024-12-13 21:19:05 -06:00
Gaetan Lepage
a35f923d6a treewide: replace mentions of 24.05 with 24.11 2024-11-30 23:17:21 +01:00
Nick
6b9d55f936 Update docs/user-guide/config-examples.md
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2024-11-24 17:39:06 +00:00
Nick
99f377335d docs/user-guide/config-examples: add spector700's config 2024-11-24 17:39:06 +00:00
Matt Sturgeon
863d7d5ade
docs: link to all "available" versions of the docs 2024-11-22 09:13:11 +00:00
Simon Elsbrock
c7b7b6481b
docs: no longer using master but main
Tiny update. Noticed the `master` branch does not exist.
2024-11-20 21:44:01 +01:00
Matt Sturgeon
99b066ba6d
docs: only set base-href in CI built docs
This reverts commit c12e59ff7c
2024-11-18 19:54:38 +00:00
Matt Sturgeon
cdbda982f0
docs/search: refactor to use override 2024-11-18 17:53:47 +00:00
bpatel347
c892aa2073 docs/user-guide/config-examples: remove trailing whitespace 2024-11-11 20:26:53 +00:00
bpatel347
3415e10419 docs/user-guide/config-examples: add bkp5190 2024-11-11 20:26:53 +00:00
Matt Sturgeon
a92339d83b
docs: specify site-url
Fixes 404 page's relative links and styling being relative to `/`.
2024-11-11 18:51:14 +00:00
Matt Sturgeon
4726334e44
docs: move wrapper options to dedicated sub-pages 2024-10-24 18:32:39 +01:00
Matt Sturgeon
131e74e560
docs: move wrapper-options to summary index page 2024-10-24 18:32:15 +01:00
Matt Sturgeon
cd68b680cd
docs: rename modules -> platforms 2024-10-24 18:32:15 +01:00
Matt Sturgeon
c477b7865e
docs/mdbook: use a fileset union for source 2024-10-24 18:32:15 +01:00
Matt Sturgeon
c2dbf7acf1
docs/mdbook: clean up derivation 2024-10-24 18:32:13 +01:00
Matt Sturgeon
b076f006c6
wrappers: add meta.wrappers options to wrappers
Allows the docs to be a little less hard-coded.

Lays the groundwork for splitting up the platform-specific option docs
on a per-page basis.
2024-10-22 14:15:58 +01:00
Matt Sturgeon
c693500a72
docs: simplify mdbook.nixvimOptions impl 2024-10-22 12:31:56 +01:00
Matt Sturgeon
0562e519ec
docs: refactor wrapper-options docs 2024-10-21 18:36:00 +01:00
Matt Sturgeon
5992a22821
docs: introduce a dedicated homepage
Based of the README for now, with a small additional "welcome to the
docs" section.

Perhaps in future, we could re-use the README.md verbatim? Perhaps with
some additional post-processing.

I think we'd want to dramatically reduce its size first though.

By having a dedicated homepage outside of `user-guide`, this fixes #1625
2024-10-21 18:02:37 +01:00
Giovanni Nicosia (mood)
25b8d2ab20
Added kickstarter.nixvim stand-alone flake in the config-examples 2024-10-15 11:39:06 +02:00
Marcel
28485b0e57
options-search: configure title 2024-10-09 00:10:41 +02:00
amalgame21
aaecda1471 docs: fix typo in standalone.md (makeNixvimWithModule) 2024-10-06 18:38:33 +00:00
Fred Drake
d42c804ad5 config-examples: add fred-drake 2024-10-05 21:05:51 -04:00
Zain Kergaye
846e1a321a config-examples: add zainkergaye 2024-10-02 06:54:03 +00:00
Matt Sturgeon
4b7a41276a
modules/nixpkgs: initial pkgs option, drop defaultPkgs specialArg
This minimal implementation allows `nixpkgs.pkgs` to be defined, but
does not implement evaluating an instance from a pkgsPath when _not_
defined.

The `defaultPkgs` specialArg is dropped in favour of `nixpkgs.pkgs`
being defined. If it's not defined, an assertion is thrown.

In the future, a nixpkgs source path can be supplied, defaulting to the
flake's `inputs.nixpkgs`. Along with other `nixpkgs.*` options, this
will allow a `pkgs` instance to be evaluated within the module eval.
2024-09-27 09:30:12 +01:00
Matt Sturgeon
cb2b76c1a9
docs/home-manager: eval options without checking config definitions
By default `lib.evalModules` will check all config definitions match
a declared option (or a freeform type), leading to errors like:

    error: The option `wrapRc' does not exist.

Setting `_module.freeformType` or `_module.check` will disable this,
allowing us to evaluate the option declaration without checking the
config definitions.
2024-09-27 02:56:28 +01:00
Matt Sturgeon
1116ae6332
docs: use evalNixvim helper 2024-09-22 18:18:05 +01:00
Matt Sturgeon
191b0a9502
treewide: avoid passing pkgs to our lib
In the two places where our "helpers" lib is exclusively internal
(flake module args and building the docs), we no longer supply `pkgs`.

In the other 4 locations, we now note why we still do in a comment.
2024-09-22 18:18:05 +01:00
Matt Sturgeon
7a147234f8
lib: rename helpers.nix -> default.nix
The old `default.nix` is inlined into the "lib" flake-module, which is
the only place it was used.

This allows "helpers" to take its rightful place at the root of `./lib` 👑
2024-09-13 17:25:17 +01:00
Quentin Boyer
8eab77b51b
docs: Support GFM style admonitions in option descriptions 2024-09-13 13:03:23 +01:00
Quentin Boyer
cab2a30ae1
docs: Create a markdown-it plugin 2024-09-13 12:59:27 +01:00
Matt Sturgeon
6665521525
docs: move pkgs overlays to their own file 2024-09-13 12:26:48 +01:00
Matt Sturgeon
27a0dd435d
lib/types: simplify eitherRecursive by defining it only once 2024-09-12 14:44:54 +01:00
Matt Sturgeon
a5152c2f8e
docs: remove unused oneOfRecursive 2024-09-12 13:00:03 +01:00
Matt Sturgeon
d0c0821245
docs: patch nixos-render-docs to output GFM alerts
This does not add support for _using_ GFM syntax alerts, the nixpkgs
syntax must still be used in option descriptions for now.
2024-09-10 17:46:44 +01:00
Matt Sturgeon
79010edc14
docs/user-guide: update "not found in pkgs" FAQ
Since starting to use `lib.mkPackageOption` throughout nixvim, users
will see a slightly different error message when encountering mismatched
nixpkgs channel errors.

Also fleshed out some recommendations.
2024-09-10 13:46:24 +01:00
traxys
faa2e6306c docs: Render alerts using mdbook-alerts
Closes #1791
2024-09-10 08:17:21 +00:00
Austin Horstman
ff042dfc93
docs/mdbook: cleanup with lib 2024-09-03 22:12:33 -05:00
Matt Sturgeon
285f6cbd7b
lib/*-plugin: use lib.mkPackageOption internally
Instead of maintainers providing an actual `defaultPackage`, they should
specify the pkg name which we'll use when calling `lib.mkPackageOption`.

This makes `mkVimPlugin` and `mkNeovimPlugin` compliant with #1950.
2024-09-04 03:07:49 +01:00
Matt Sturgeon
70e9532ec2
docs: fix typo in pkgs arg default value 2024-08-28 05:45:29 +01:00
Austin Horstman
052ee66dbb
docs/mdbook: move description to bottom
Long descriptions for plugins will shove the plugin's source link and
maintainer information far down the page. Since those are fairly short
and the description is a variable size. Moving below to maintain
consistent placement.
2024-08-23 15:07:21 -05:00
Matt Sturgeon
511a328aa3
wrappers: add our lib to the host's _module.args
Make our "extended" lib available to host modules as `_module.args.nixvimLib`.

We didn't do this before because `helpers` was too generic of a name,
but `nixvimLib` should be ok.

    { nixvimLib, ... }: {
        programs.nixvim.someOption = nixvimLib.nixvim.mkRaw "print('Hi')";
    }
2024-08-22 13:19:59 +01:00
Matt Sturgeon
e555ba13b1
docs/helpers: document the "extended" lib 2024-08-22 13:19:59 +01:00
Matt Sturgeon
0bc1699037
docs: call evalModules in one place 2024-08-02 14:38:38 +01:00
Matt Sturgeon
27c4c9c210
lib/modules: init with specialArgs helpers 2024-08-02 14:38:38 +01:00
Austin Horstman
59941a5300
config-examples: fix typo 2024-07-27 15:14:06 -05:00