Matt Sturgeon
a9c08fb6a5
lib/types: make strLua
coerce strings to rawLua
...
Instead of relying on option `apply` functions to coerce the value to
rawLua, this can be done in the type's merge function.
Inspired by `types.coercedTo` in nixpkgs.
2024-09-29 16:57:15 +01:00
Matt Sturgeon
7886be8760
lib/types: flip maybeRaw
's merge function
...
`maybeRaw` should prioritise merging `rawLua` before the other type
2024-09-29 16:57:15 +01:00
Matt Sturgeon
cd76b4feb8
lib: remove helpers
from internal usage
2024-09-29 14:41:41 +01:00
Gaetan Lepage
2c4e4681db
plugins/avante: init
2024-09-28 21:12:33 +00:00
wadsaek
c06d598315
maintainers: add wadsaek
2024-09-28 17:52:00 +00:00
wadsaek
c32a43a862
plugins/lsp-signature: init
2024-09-28 17:52:00 +00:00
Gaetan Lepage
13564727c5
plugins/render-markdown: init
2024-09-28 12:39:18 +02:00
github-actions[bot]
f9dcd86cae
flake.lock: Update
...
Flake lock file updates:
• Updated input 'git-hooks':
'github:cachix/git-hooks.nix/4e743a6920eab45e8ba0fbe49dc459f1423a4b74' (2024-09-19)
→ 'github:cachix/git-hooks.nix/85f7a7177c678de68224af3402ab8ee1bcee25c8' (2024-09-28)
• Updated input 'home-manager':
'github:nix-community/home-manager/c124568e1054a62c20fbe036155cc99237633327' (2024-09-26)
→ 'github:nix-community/home-manager/ffe2d07e771580a005e675108212597e5b367d2d' (2024-09-26)
• Updated input 'nix-darwin':
'github:lnl7/nix-darwin/bd7d1e3912d40f799c5c0f7e5820ec950f1e0b3d' (2024-09-22)
→ 'github:lnl7/nix-darwin/f2e1c4aa29fc211947c3a7113cba1dd707433b70' (2024-09-28)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/30439d93eb8b19861ccbe3e581abf97bdc91b093' (2024-09-23)
→ 'github:NixOS/nixpkgs/1925c603f17fc89f4c8f6bf6f631a802ad85d784' (2024-09-26)
• Updated input 'nuschtosSearch':
'github:NuschtOS/search/3b7dd61b365ca45380707453758a45f2e9977be3' (2024-09-22)
→ 'github:NuschtOS/search/9f7426e532ef8dfc839c4a3fcc567b13a20a70d3' (2024-09-27)
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/1bff2ba6ec22bc90e9ad3f7e94cca0d37870afa3' (2024-09-25)
→ 'github:numtide/treefmt-nix/879b29ae9a0378904fbbefe0dadaed43c8905754' (2024-09-27)
2024-09-28 09:23:14 +00:00
Austin Horstman
b5c19b6abb
plugins/deprecation: update icons warning
2024-09-27 16:14:56 -05:00
mitchmindtree
ae2b9bd445
plugins/idris2: init
...
Adds the `idris2` neovim plugin.
Also changes `idris2-lsp` to enable this new `idris2` plugin when
enabled, as it's required for `idris2-lsp` to work at all.
2024-09-27 14:27:54 +00:00
Matt Sturgeon
6b0c5d594a
lib/modules: assert that specialArgs
has a valid lib
...
End-users have ran into issues before when attempting to re-use a `lib`
from elsewhere in nixvim's configuration.
If a `lib` without the `nixvim` extension is used, this assertion will
inform the user that this isn't supported.
In the future we can also provide better ways for end-users to overlay
their own lib with nixvim's extensions, but this is not yet implemented.
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2024-09-27 11:11:49 +01:00
Matt Sturgeon
5020e58798
lib/modules: remove specialArgsWith
2024-09-27 09:30:12 +01: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
8c3d521bff
modules: move nixpkgs
module to top-level modules
...
Make `pkgs` available to files submodules by passing _all_ module args
through. We already did this for `specialArgs`.
2024-09-27 09:30:12 +01:00
Zain Kergaye
31579dc201
plugins/wrapping: init
2024-09-27 02:18:51 -06:00
Zain Kergaye
10925d811c
maintainers: add ZainKergaye
2024-09-27 02:18:51 -06:00
Matt Sturgeon
2f49c76a6a
lib: remove nixvimTypes
alias
2024-09-27 08:31:07 +01:00
Matt Sturgeon
bafc6308f6
plugins/none-ls/settings: cleanup lib usage
2024-09-27 08:16:48 +01:00
Matt Sturgeon
a32d2e6df0
plugins: cleanup lib usage in several plugins
...
- ccc
- cmake-tools
- baleia
- auto-save
- vim-css-color
- virt-column
- bacon
- coq-nvim
- dressing
- competitest
- direnv
- committia
- indent-o-matic
- guess-indent
- lsp-status
- octo
- lazygit
2024-09-27 07:08:17 +01:00
Matt Sturgeon
d718446b61
lib: remove maintainers
alias
2024-09-27 05:31:26 +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
6a1bf6bdc3
modules/output: check warnings+assertions on build.package
...
Add a `build.packageUnchecked` option for use instead of the old `check`
evalNixvim argument.
2024-09-26 18:04:36 +01:00
Austin Horstman
2ea7009e61
tests/none-ls: re-enable clojure
2024-09-26 11:09:59 -05:00
Austin Horstman
1e28932840
tests/lsp: re-enable ols
2024-09-26 11:05:48 -05:00
Austin Horstman
803bded988
tests/lsp: re-enable omnisharp
2024-09-26 11:05:48 -05:00
Austin Horstman
5e8f822af5
flake-modules/dev: treefmt re-enable taplo linux
2024-09-26 11:05:48 -05:00
Austin Horstman
3510cade90
tests/lint: re-enable clojure
2024-09-26 10:51:31 -05:00
Austin Horstman
59ae79ce79
tests/lsp: re-enable taplo
2024-09-26 10:50:11 -05:00
Austin Horstman
3f17f500b3
lib/maintainers: remove duplicate entry
2024-09-26 10:45:23 -05:00
Austin Horstman
ac14f62e22
tests/none-ls: re-enable prisma_format
2024-09-26 10:44:35 -05:00
Austin Horstman
07a65fbd3c
tests/lsp: re-enable prismals
2024-09-26 10:44:28 -05:00
github-actions[bot]
6e1f3a504d
flake.lock: Update
...
Flake lock file updates:
• Updated input 'home-manager':
'github:nix-community/home-manager/04213d1ce4221f5d9b40bcee30706ce9a91d148d' (2024-09-22)
→ 'github:nix-community/home-manager/c124568e1054a62c20fbe036155cc99237633327' (2024-09-26)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/9357f4f23713673f310988025d9dc261c20e70c6' (2024-09-21)
→ 'github:NixOS/nixpkgs/30439d93eb8b19861ccbe3e581abf97bdc91b093' (2024-09-23)
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/ee41a466c2255a3abe6bc50fc6be927cdee57a9f' (2024-09-19)
→ 'github:numtide/treefmt-nix/1bff2ba6ec22bc90e9ad3f7e94cca0d37870afa3' (2024-09-25)
2024-09-26 15:36:50 +00:00
Matt Sturgeon
2ab8751b8b
modules/output: add build.initSource
option
...
Allows access to the init "source" file even when
`performance.byteCompileLua` is enabled.
2024-09-26 06:31:57 +01:00
Matt Sturgeon
692e39311e
modules/{output,files,test}: move outputs to build
scope
...
Move the following output options into `build`:
- finalPackage -> package
- printInitPackage
- initPath -> initFile
- filesPlugin -> extraFiles
- test.derivation -> test
2024-09-26 06:31:57 +01:00
Matt Sturgeon
7bda0f1ce4
modules/output: don't remove "site" dir when impureRtp
is disabled
...
This is required for storing the state of several things, such as spell
files.
2024-09-25 18:43:32 +01:00
Matt Sturgeon
11924e1593
modules/output: add impureRtp
option
...
Instead of assuming `wrapRc` implies we don't want impurities, configure
this separately.
2024-09-25 18:43:32 +01:00
Matt Sturgeon
fb7cda2868
modules/output: refactor wrapRc
default
...
Set default to `true`, with a low priority. Home-manager's wrapper sets
its own default using `mkOptionDefault`.
Clarify using `defaultText`.
2024-09-25 18:43:10 +01:00
Matt Sturgeon
a8f678da24
wrappers: explicitly set _file
for wrapper modules
...
This won't be detected automatically, since the modules are all returned
from function calls instead of being path references.
2024-09-25 16:22:25 +01:00
Matt Sturgeon
b3a90d737d
modules/files: don't set shorthandOnlyDefinesConfig
2024-09-24 19:17:44 +01:00
Matt Sturgeon
5b55858fe3
wrappers: use (evalModules {}).type
for nixvim submodule
2024-09-24 19:17:44 +01:00
Matt Sturgeon
8f991cc8bc
wrappers/shared: only propagate files when nixvim is enabled
2024-09-24 14:59:41 +01:00
Matt Sturgeon
87509bac1f
wrappers: move assertion propagation to _shared.nix
2024-09-24 14:59:41 +01:00
Matt Sturgeon
6da94195c2
modules/misc: include assertions
and meta
modules in the repo
...
Based on the modules we previously imported from NixOS.
This will allow us to drop the `defaultPkgs` specialArg and avoids
needing the proposed `pkgsPath` specialArg.
2024-09-24 12:49:28 +01:00
Đỗ Quang Minh
901346e38b
plugins/luasnip: fix extend_filetypes
-> filetype_extend
2024-09-24 03:44:26 +00:00
Matt Sturgeon
e64c511811
tests/package-options: allow option defaults to throw
...
This is often an intended behaviour, so just assume any option whose
default throws is not a package-type option
2024-09-24 03:27:48 +01:00
Austin Horstman
a75c2235d9
plugins/rest: v3 migration
2024-09-23 20:58:02 -05:00
github-actions[bot]
78816c0c9c
flake.lock: Update
...
Flake lock file updates:
• Updated input 'home-manager':
'github:nix-community/home-manager/14929f7089268481d86b83ed31ffd88713dcd415' (2024-09-21)
→ 'github:nix-community/home-manager/04213d1ce4221f5d9b40bcee30706ce9a91d148d' (2024-09-22)
• Updated input 'nix-darwin':
'github:lnl7/nix-darwin/c03f85fa42d68d1056ca1740f3113b04f3addff2' (2024-09-19)
→ 'github:lnl7/nix-darwin/bd7d1e3912d40f799c5c0f7e5820ec950f1e0b3d' (2024-09-22)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/c04d5652cfa9742b1d519688f65d1bbccea9eb7e' (2024-09-19)
→ 'github:NixOS/nixpkgs/9357f4f23713673f310988025d9dc261c20e70c6' (2024-09-21)
• Updated input 'nuschtosSearch':
'github:NuschtOS/search/7733a39a1321057172d87e6251ded7cdeb67171e' (2024-09-20)
→ 'github:NuschtOS/search/3b7dd61b365ca45380707453758a45f2e9977be3' (2024-09-22)
• Updated input 'nuschtosSearch/flake-utils':
'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11)
→ 'github:numtide/flake-utils/c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a' (2024-09-17)
2024-09-23 20:21:53 -05:00
refaelsh
9bcba520c8
plugins/otter: remove cmp source registration
...
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2024-09-24 02:15:08 +01:00
Matt Sturgeon
47364df496
lib/types/pluginLuaConfig: use lib.optional
instead of lib.mkIf
...
This may slightly increase performance by reducing work done by the
module system.
2024-09-23 20:08:52 +01:00
Austin Horstman
a9345dcfc3
plugins/markview: mode -> modes
2024-09-22 19:20:33 -05:00