When lazy loading, we need to isolate the plugin's config otherwise it
will fail because the generated config is still loaded immediately in
lspconfig's lua.
Strip `lib` from `lib.types.`
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
Fix settingsExample expression
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Use '-version of options for better examples
Fix indentation in example lua code
Remove trailing space
Replace use of literalLua with strings
Revert to use literalLua
Use lib.mkDefault
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
Allow `test.warnings` and `test.assertions` to be defined as either a
list, or a function coerced to a list.
When defined as a function, it is supplied an `expect` function which
provides some syntactic-sugar for defining simple expectations.
This is an alternative to the current approach of defining that `expect`
function on an ad-hoc basis.
I prefer this to adding `expect` to nixvim's lib because:
1. That would require having access to `lib`
2. IDK where in `lib` such a specialized function should live
Wrap code in backticks
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
Surround right_aling with backticks
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
Set default of `inline` to true since we are on nvim >= 0.10
Document `highlights`
Use `mkUnsignedInt`
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
Improve warning
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
Readd deprecated options
Document icons
Rename removed-options.nix to deprecations.nix
Reformat raw string
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
Don't specify rawLua
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
Use mkDefault and make utf-16 workaround leaner
Don't wrap warning
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Change by -> after
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Document border options