Commit Graph
1748 Commits
Author SHA1 Message Date
Matt Sturgeon abc409c16f github: refactor update CI workflow
- Rename workflow to simply "update"
- Drop the DeterminateSystems/update-flake-lock action
- Instead use `nix flake update --commit-lock-file`
- Also use `generate-files`'s `--commit` option
- Use peter-evans/create-pull-request to open a PR
2024-07-10 08:30:47 +01:00
Matt Sturgeon 7e3d629bb0 flake/generate-files: add --commit command + fixes
- Added `--commit` with a git-based message
- `nix fmt` only operates on files known to git
- ensure `generated` directory exists
2024-07-10 08:30:03 +01:00
Matt Sturgeon a5e9dbdef1 plugins/bufdelete: init 2024-07-09 14:15:38 +01:00
traxys 023dc1c93a plugins/treesitter: Add a treesitter injection query for raw lua 2024-07-09 07:45:26 +00:00
traxys 29118021b3 plugins/treesitter: Adapt nixvim queries to 0.10 2024-07-09 07:45:26 +00:00
seth 0f76a8cdfc plugins/glow: init 2024-07-09 06:06:29 +00:00
Austin Horstman 1a644b8c2b plugins/treesitter: fix settingsExample 2024-07-08 14:23:42 -05:00
Matt Sturgeon 0e8b248a52 lib/options: allow rawLua in mkEnum' default 2024-07-08 17:48:00 +01:00
Matt Sturgeon aad2e32b5a treewide: reformat 2024-07-08 16:24:47 +00:00
Matt Sturgeon 3c786ae988 flake: ignore unformatted files
This suppresses treefmt's "no formatter for path" warnings.
2024-07-08 16:24:47 +00:00
Matt Sturgeon f1a0cf3a90 flake: format toml using "taplo" 2024-07-08 16:24:47 +00:00
Matt Sturgeon 2339ddc3a0 flake: format lua with "stylua" 2024-07-08 16:24:47 +00:00
Matt Sturgeon b310affef3 flake: format + lint python with "ruff" 2024-07-08 16:24:46 +00:00
Matt Sturgeon 7c02148e68 flake: format JS & YML with "prettier"
Used for JS and YML files.
Markdown is excluded.
2024-07-08 16:24:46 +00:00
Matt Sturgeon 2583f54225 flake/pre-commit: use treefmt in git hook 2024-07-08 16:24:46 +00:00
Matt Sturgeon 8c44124a1f docs/user-guide: fix blurb on accessing helpers
Fixes #1220
2024-07-08 16:24:07 +01:00
Matt Sturgeon 8b9ba44195 flake: remove getHelpers function 2024-07-08 16:24:07 +01:00
Matt Sturgeon 1b7efacdf4 wrappers: bootstrap "helpers" directly
We don't need to pass a `getHelpers` function in, since we can just
import `../lib/helpers.nix`.
2024-07-08 16:24:06 +01:00
Matt Sturgeon cfa44bbb66 wrappers: make _shared.nix return a module 2024-07-08 16:24:06 +01:00
Austin Horstman 97fa47376b treewide: treesitter moduleConfig -> settings 2024-07-08 09:09:48 -05:00
Austin Horstman 435ef287ab plugins/treesitter: switch to mkNeovimPlugin 2024-07-08 09:09:48 -05:00
Matt Sturgeon c0ea106b4b colorschemes/base16: add settings + refactor
Added support for the plugin's "advanced" config settings.

Removed the enum restriction and prefix concatenation, allowing anything
to be passed through, including raw lua: fixes #1675

The theme list is now much shorter and is included directly in the option
description.

Some general cleanup, in particular to `extraConfig` and `customColorschemeType`.
2024-07-08 10:21:27 +01:00
Gaetan Lepage 6055d0f28c lib/types: allow emptyTable as a valid rawLua value 2024-07-08 10:21:49 +02:00
Gaetan Lepage 451beb4eca plugins/leap: allow __empty for safeLabels option 2024-07-08 09:54:47 +02:00
seth 41794c222a flake: document optional inputs 2024-07-07 16:05:51 -04:00
seth 5feeb4eef8 flake/dev: make treefmt-nix optional
as this isn't used by consumers, they should be able to remove this
input via `inputs.nixvim.inputs.treefmt-nix.follows = ""`
2024-07-07 16:05:50 -04:00
seth 432a513ccd flake/dev: make git-hooks optional
as this isn't used by consumers, they should be able to remove this
input via `inputs.nixvim.inputs.git-hooks.follows = ""`. it is
especially important here as `git-hooks` has a large amount of inputs
itself
2024-07-07 16:05:04 -04:00
seth 2f21379b8c flake/devshell: make devshell optional
as this isn't used by consumers, they should be able to remove this
input via `inputs.nixvim.inputs.devshell.follows = ""`
2024-07-07 16:04:31 -04:00
seth 22a6678279 flake: deduplicate flake-compat 2024-07-07 15:08:33 -04:00
Matt Sturgeon a6cc4c6c33 modules/files: format files submodule output
Instead of `pkgs.writeText`, use `helpest.writeLua` to ensure the file
is formatted with stylua.
2024-07-07 16:44:17 +01:00
Matt Sturgeon f11f991e09 flake/checks: test extraFiles are in the build 2024-07-07 16:43:06 +01:00
Matt Sturgeon 086873bed9 modules: refactor extraFiles
Moved `extraFiles` from `modules/output.nix` into its own file `modules/files.nix`.

Users should now assign text to a `text` attribute, however they could
also assign a file path to a `source` attribute instead.

The old method of directly assigning a string still works, and is
coerced to the new type along with a deprecation warning.
2024-07-07 16:42:47 +01:00
Matt SturgeonandSilvan Mosberger c12694f4ba lib/deprecation: add transitionType
Based on `types.coerceTo`, which is like `types.either` but coerces the
left-hand type into the right-hand type.

`transitionType` only shows the right-hand type in its description and
also prints a warning when the left-hand type is used.

Co-authored-by: Silvan Mosberger <contact@infinisil.com>
2024-07-07 16:02:37 +01:00
Stanislav Asunkin 6674dea840 modules/output: fix extraLuaPackages 2024-07-06 20:44:43 +00:00
Matt Sturgeon 843fb302eb lib/neovim-plugin: allow disabling installPackage
Some plugins may wish to handle package installation themselves.
2024-07-06 13:01:07 +01:00
Matt Sturgeon 04a255ed7e modules/context: init with isDocs
Replaced the `isDocs` specialArg added in #1807 with an internal module
option.

We should only use `specialArgs` when absolutely necessary, a module or
`_module.args` is preferred, but those aren't available until `config`
is evaluated so they can't be used for `imports`.

The main problem with `specialArgs` is it makes our modules less
portable.

Luckily that shouldn't be an issue for these context flags.
2024-07-06 11:47:41 +01:00
Matt Sturgeon edc8602d47 docs: use pkgsDoc to build helpers 2024-07-06 00:32:42 +01:00
traxys 367380bd84 modules/output: Remove the initContent option
This (internal) option introduces IFD, and can be substituted internally
with the `initPath` option easily.
If the content is required somewhere users can use readFile on the
initPath, though it will result in an IFD in their project.
2024-07-05 22:08:25 +02:00
traxys 8fbcfcb469 dev: Move assert in derivation for generated file in the derivation definition
If we access the asserts outside the derivation arguments, and inside
the code that _creates_ the derivation then we observe IFD in `nix flake
show`.

This commit fixes it, and allows `nix flake show` to work!

Fixes #1154
2024-07-05 21:53:05 +02:00
traxys 930f5fdd21 plugins/none-ls: Adapt to autogenerated builtin list 2024-07-05 21:36:45 +02:00
traxys 776835b066 generated: Generate the none-ls builitins 2024-07-05 21:36:45 +02:00
traxys 0b93815db5 dev: Add a script to generate the none-ls builtins 2024-07-05 21:36:45 +02:00
Matt Sturgeon 517648dac0 wrappers/standalone: move module to wrappers/modules 2024-07-05 18:28:19 +01:00
Matt Sturgeon 38d43a740f modules/files: don't include modules in the docs
This means we no longer need to spoof the module in the docs implementation.

Instead, we supply the (optional) special arg `isDocs` to `evalModules`.
2024-07-05 17:38:46 +01:00
Matt Sturgeon f5ba05ec82 modules/files: move submodule to its own file 2024-07-05 17:21:56 +01:00
Matt Sturgeon 2deb61f6a5 modules/top-level: move out of wrappers/modules 2024-07-05 17:20:28 +01:00
Matt Sturgeon b59fa976d0 plugins/nvim-osc52: hide warnings in tests 2024-07-05 16:06:01 +01:00
traxys 99f272d8c7 plugigns/efmls-configs: Use the generated source files 2024-07-05 16:57:03 +02:00
traxys 01d9178788 generated: Generate the efmls-configs tools 2024-07-05 16:57:03 +02:00
traxys c1231826b9 dev: Add a script to generate efmls-configs tools 2024-07-05 16:57:03 +02:00