Commit graph

2797 commits

Author SHA1 Message Date
Matt Sturgeon
115994f18e
flake/auto: nameFunction default to lib.id
This seems like a simpler/saner default.
2025-01-20 15:11:39 +00:00
Matt Sturgeon
780d3eec72
wrappers/standalone: simplify extend 2025-01-20 14:49:59 +00:00
Matt Sturgeon
00586f8f1b
modules/output: move symlinkJoin to build.package 2025-01-20 14:49:59 +00:00
Gaetan Lepage
731699a24c plugins/gitsigns: cosmetic refactoring 2025-01-20 14:57:16 +01:00
Gaetan Lepage
af6e4b0bad treewide: use mkAssertions wherever possible 2025-01-20 14:23:55 +01:00
Gaetan Lepage
a7e516b322 lib/utils: add mkAssertions 2025-01-20 14:17:26 +01:00
Gaetan Lepage
60adb6c56b treewide: use mkWarnings wherever possible 2025-01-20 14:06:20 +01:00
Gaetan Lepage
2ec6218f87 treewide: use mkWarnings wherever possible 2025-01-20 12:25:33 +00:00
Gaetan Lepage
02e16b2a76 lib/utils: add mkWarnings 2025-01-20 12:25:33 +00:00
Gaetan Lepage
1036b8f8b6 ci/update: remove nixos-24.05 update action 2025-01-20 07:16:02 +00:00
Matt Sturgeon
a70b16976b
lib: export evalNixvim as top-level alias
- `lib.nixvim.evalNixvim`
- `<nixvim>.lib.evalNixvim` (flake output)
2025-01-20 05:23:05 +00:00
Matt Sturgeon
e793c5cdc6
flake: add auto flake-parts module
When enabled, automatically sets up packages and/or checks for all
`nixvimConfigurations`
2025-01-20 03:34:31 +00:00
Matt Sturgeon
8fb2fe22c2
flake: add nixvimModules flake-parts module 2025-01-19 17:47:17 +00:00
Matt Sturgeon
5426c9dd83
flake: add nixvimConfigurations flake-parts module 2025-01-19 17:47:17 +00:00
Matt Sturgeon
9aa6d0f6e6
flake: add initial flake-parts module 2025-01-19 17:47:17 +00:00
Matt Sturgeon
1654f97a79
docs: use README as a source for the docs 2025-01-19 17:36:14 +00:00
Gaetan Lepage
ab693bb1cd plugins/vim-suda: add back the smart_edit option 2025-01-19 15:19:43 +01:00
Matt Sturgeon
85e4e16de8
docs: notify useGlobalPackages breaking change 2025-01-19 13:23:14 +00:00
Matt Sturgeon
82415eaa5d
modules/nixpkgs: warn about changing defaults
If end-users change the nixpkgs revision to something other than our
default, they can run into issues not picked up by our test suite.
2025-01-19 13:13:15 +00:00
Matt Sturgeon
3a22953bea
modules/nixpkgs: useGlobalPackages default to false
Rather than waiting for a technically impossible migration strategy,
let's just bite the bullet and change the default.
2025-01-19 13:13:15 +00:00
Matt Sturgeon
fecc892145
flake: remove pkgsUnfree arg 2025-01-19 12:55:15 +00:00
Gaetan Lepage
998bae9dac flake-modules -> flake 2025-01-19 12:56:24 +01:00
Matt Sturgeon
cf647bc045
ci: drop 24.05 support 2025-01-19 10:32:11 +00:00
Gaetan Lepage
cbf960e565 plugins/flutter-tools: update options 2025-01-18 11:49:38 +00:00
Gaetan Lepage
4f2d78fcaf plugins/flutter-tools: update settingsExample 2025-01-18 11:49:38 +00:00
Matt Sturgeon
a1b44cfdf4
templates: remove _wrapper
Added in #361, but has been unused since #902
2025-01-18 06:15:04 +00:00
Quentin Boyer
aa839cf994 generated: Update rust-analyzer options 2025-01-17 20:46:33 +01:00
Quentin Boyer
d63ac3eb39 update-scripts: Handle missing descriptions for enums 2025-01-17 20:44:04 +01:00
Quentin Boyer
674790dbf9 update-scripts: Correctly handle propreties without a 'type' 2025-01-17 20:44:03 +01:00
Quentin Boyer
8e9458eacf update-scripts: Add more verbose errors for rust-analyzer 2025-01-17 20:44:03 +01:00
Matt Sturgeon
e4484133d6
docs/user-guide: slightly simplify lib-overlay example 2025-01-17 13:13:40 +00:00
Matt Sturgeon
51474292cd
modules/nixpkgs: remove pkgs default text 2025-01-17 10:16:10 +00:00
Matt Sturgeon
3172e48dbb
lib/tests: simplify access to default system 2025-01-17 10:16:10 +00:00
Matt Sturgeon
9bf4c9d55b
wrappers/standalone: make pkgs arg optional, allow specifying system 2025-01-17 10:16:10 +00:00
Matt Sturgeon
8c6f9ed8c4
lib/modules: allow specifying system as an evalNixvim arg 2025-01-17 10:16:10 +00:00
Matt Sturgeon
7790746d38
modules/nixpkgs: add useGlobalPackages option 2025-01-17 10:16:09 +00:00
Matt Sturgeon
912841c1a7
modules/nixpkgs: construct an instance of nixpkgs.source 2025-01-17 09:37:03 +00:00
Matt Sturgeon
8dc8fa38b0
modules/nixpkgs: add hostPlatform & buildPlatform options 2025-01-17 09:37:03 +00:00
Matt Sturgeon
5bd04ce09a
modules/nixpkgs: add config option 2025-01-17 09:37:02 +00:00
github-actions[bot]
2d68ef843a flake.lock: Update
Flake lock file updates:

• Updated input 'git-hooks':
    'github:cachix/git-hooks.nix/a5a961387e75ae44cc20f0a57ae463da5e959656?narHash=sha256-3FZAG%2BpGt3OElQjesCAWeMkQ7C/nB1oTHLRQ8ceP110%3D' (2025-01-03)
  → 'github:cachix/git-hooks.nix/94ee657f6032d913fe0ef49adaa743804635b0bb?narHash=sha256-I/OuxGwXwRi5gnFPsyCvVR%2BIfFstA%2BQXEpHu1hvsgD8%3D' (2025-01-16)
• Updated input 'home-manager':
    'github:nix-community/home-manager/2532b500c3ed2b8940e831039dcec5a5ea093afc?narHash=sha256-ZOaGwa%2BWnB7Zn3YXimqjmIugAnHePdXCmNu%2BAHkq808%3D' (2025-01-10)
  → 'github:nix-community/home-manager/12851ae7467bad8ef422b20806ab4d6d81e12d29?narHash=sha256-u1gk5I1an975FOAMMdS6oBKnSIsZza5ZKhaeBZAskVo%3D' (2025-01-17)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/57733bd1dc81900e13438e5b4439239f1b29db0e?narHash=sha256-iWcjToBpx4PUd74uqvIGAfqqVfyrvRLRauC/SxEKIF0%3D' (2025-01-08)
  → 'github:lnl7/nix-darwin/bd921223ba7cdac346477d7ea5204d6f4736fcc6?narHash=sha256-deQVtIH4UJueELJqluAICUtX7OosD9paTP%2B5FgbiSwI%3D' (2025-01-14)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/bffc22eb12172e6db3c5dde9e3e5628f8e3e7912?narHash=sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc%2Bc2c%3D' (2025-01-08)
  → 'github:NixOS/nixpkgs/eb62e6aa39ea67e0b8018ba8ea077efe65807dc8?narHash=sha256-uQ%2BNQ0/xYU0N1CnXsa2zghgNaOPxWpMJXSUJJ9W7140%3D' (2025-01-14)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/13c913f5deb3a5c08bb810efd89dc8cb24dd968b?narHash=sha256-p2r8xhQZ3TYIEKBoiEhllKWQqWNJNoT9v64Vmg4q8Zw%3D' (2025-01-06)
  → 'github:numtide/treefmt-nix/97871d416166803134ba64597a1006f3f670fbde?narHash=sha256-saLiCRQ5RtdTnznT/fja7GxcYRAzeY3k8S%2BIF/2s/2A%3D' (2025-01-16)
2025-01-17 08:17:14 +00:00
Matt Sturgeon
30842191e0
docs: enable warningsAreErrors 2025-01-17 03:56:59 +00:00
Matt Sturgeon
c19daee453
docs/user-guide: document nixvim's lib overlay 2025-01-17 02:23:10 +00:00
Matt Sturgeon
b28ebf2535
docs/user-guide: add sub-headings to helpers.md 2025-01-17 02:23:10 +00:00
Matt Sturgeon
ff29c97723
modules/test: provide access to expect function
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
2025-01-17 02:17:34 +00:00
Matt Sturgeon
16662760a9
lib/modules: specify modulesPath
`specialArgs.modulesPath` can be used to allow users to manually
import modules relative to our `./modules` directory.

It is also used by the module system to provide a base path for
relative `disabledModules` paths.
2025-01-17 00:28:36 +00:00
Matt Sturgeon
b5efe91c52
lib/modules: remove explicit specialArgs.lib
`lib.evalModules` will do this internally anyway
2025-01-17 00:21:28 +00:00
Matt Sturgeon
d4c67764a7
tests/nixpkgs-module: only import the minimal modules for test
Instead of importing the full set of top-level nixvim modules, only
import the nixpkgs-module and its direct dependencies.
2025-01-16 02:55:01 +00:00
Matt Sturgeon
e13b2a5129
tests/nixpkgs-module: split up helper fn 2025-01-16 02:55:01 +00:00
Matt Sturgeon
5192a85f32
test/nixpkgs-module: use a fixed runCommand function
Rather than getting `runCommand` from the pkgs instance under test, get
the function from a fixed/consistent pkgs instance.
2025-01-16 02:55:01 +00:00
Matt Sturgeon
7854d5f18c
modules/test: fix expectations lib.toJSON -> builtins.toJSON 2025-01-16 02:55:00 +00:00