Commit graph

36 commits

Author SHA1 Message Date
Gaetan Lepage
9abe8fd025 modules/dependencies: add git 2025-04-11 08:51:45 +10:00
Gaetan Lepage
5d833a1692 plugins/packer: remove (deprecated) 2025-04-01 16:03:03 +02:00
Matt Sturgeon
5e9a6c00a9
treewide: neovim-plugin -> plugins 2024-12-22 10:04:00 +00:00
Gaetan Lepage
ec24d496d5 treewide (cleaning): helpers.toLuaObject -> lib.nixvim.toLuaObject 2024-12-15 21:55:51 +00:00
Austin Horstman
95361fda3c
treewide: apply deadnix suggestions 2024-12-14 11:34:26 -06:00
Austin Horstman
a7012e7864
treewide: originalName -> packPathName
We used to only think of it as the plugin repo's name, but we have been
needing to use it for the name of the plugin's packpath location.
2024-12-13 21:29:00 -06:00
Austin Horstman
8012fbd998
plugins/lz-n: move to extraConfigLuaPre
Code that can trigger lazy loading might be inserted before the trigger
is defined.
2024-12-12 18:07:34 -06:00
Matt Sturgeon
2f49c76a6a
lib: remove nixvimTypes alias 2024-09-27 08:31:07 +01:00
Quentin Boyer
d2f9e011d9 lib/neovim-plugin: Add lua configuration scoped to the plugin
This commit adds a `plugins.<name>.luaConfig` section controlling the
plugin specific configuration.

The section contains the internal `init` option, containing the plugin's
initialization code.

It also contains the public `pre` and `post` options, that allow to add
code before & after the `init` section

Finally, it contains the `final` option, being the concatenation of the
three previous options.
2024-09-22 16:15:27 +00:00
Austin Horstman
5316141e50
plugins/packer: use package option 2024-09-14 19:23:48 -05:00
Austin Horstman
1364f071ad
plugins/lazy: use package option 2024-09-14 19:23:45 -05:00
Matt Sturgeon
ae3a2c9d10
plugins: remove all use of lib.nixvim.mkPackageOption 2024-09-05 01:31:18 +01:00
Matt Sturgeon
1fd4b6c739
plugins: migrate defaultPackage -> package
Migrate all users of `mkVimPlugin` and `mkNeovimPlugin` to use the new
`package` argument instead of the old `defaultPackage` argument.
2024-09-04 03:29:34 +01:00
Matt Sturgeon
18b7597e6c
lib/neovim-plugin: drop config arg 2024-09-02 10:35:52 +01:00
Austin Horstman
710f3472ec
plugins/packer: use gitPackage 2024-08-29 16:39:53 -05:00
Austin Horstman
4fe95d4502
plugins/lazy: use gitPackage 2024-08-29 16:39:53 -05:00
psfloyd
78abafe280 plugins/lz-n: init 2024-08-08 06:18:43 +00:00
traxys
62f32bfc71 treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
Christian Kemper
f6e79601ad
plugins/lazy.nvim: new plugin manager (#1175) 2024-03-08 21:13:30 +01:00
traxys
507ff5b142
docs: Use a nixpkgs patch instead of copy/pasting nixpkgs functions (#1011)
This makes the code more maintainable, as it only depends on our small
patch, instead of a large number of internals of nixpkgs.
2024-02-03 19:04:09 +01:00
traxys
af41ea2d80
helpers: move rawType to helpers.nixvimTypes (#871)
This is done in preparation of adding new (lua) types to help the
documentation.
2024-01-01 23:33:53 +01:00
traxys
1d8e7906c9
plugins: Introduce helpers.defaultNullOpts.mkLuaFn (#855)
This allows to avoid calling `mkRaw` on lua functions, as they will get
applied automatically.

This could also help in the future to refactor the use of Lua code to
make it more user-friendly.
2023-12-29 15:24:42 +01:00
Gaetan Lepage
19f39c3b1b plugins: swith to the new behaviour of mkRaw 2023-11-23 11:39:41 +01:00
Gaetan Lepage
b6724702b4 misc: refactor imports, prefer adding helpers to args rather than importing it 2023-11-06 16:33:39 +01:00
municorn
934bf7e2e3
fix(helpers): use "__unkeyed" prefix instead of "@" in toLuaObject (#632) 2023-10-09 15:50:21 +02:00
Gaétan Lepage
4eed4e1de4
plugins/packer: improve lua generation (#270) 2023-03-18 16:26:00 +01:00
Gaétan Lepage
e89d919e4d
plugins/packer: refactoring + fixes + tests (#243) 2023-03-12 18:23:23 +01:00
Gaétan Lepage
264de8cefb
added formatter + reformat existing codebase (#175) 2023-02-20 10:42:13 +00:00
Gaétan Lepage
c73bef16ab
helpers: add mkPackageOption + refactoring (#144) (#150) 2023-01-25 18:46:49 +00:00
Pedro Alves
2d54272177
Revert "helpers: add mkPackageOption + refactoring (#144)" (#149)
This reverts commit b724085447.
2023-01-25 00:03:26 +00:00
Gaétan Lepage
b724085447
helpers: add mkPackageOption + refactoring (#144) 2023-01-24 23:59:06 +00:00
Pedro Alves
238f0c590e misc: fix mkEnableOption descriptions 2023-01-22 03:32:08 +00:00
Pedro Alves
4ddd3969e5
nixvim: support standalone nixvim
This represents a major rearchitecture for nixvim, so I'm leaving this up to track the progress for now, and to serve as a reference for any breaking changes during transition.

The main change is, of course, being able to use nixvim standalone. To do this, you should use the new build function, which takes in two arguments: the system architecture (e.g. x86_64-linux) and the configuration. For the new configuration, do not use the programs.nixvim. prefix.

For module development, the main change is that you should no longer prefix your modules with programs.nixvim..
2022-09-18 11:19:23 +01:00
Pedro Alves
d32ed07d0e packer: add git dependency 2021-12-11 15:10:06 +00:00
Pedro Alves
11922ace8d packer.nvim: fix package name 2021-03-19 12:41:10 +00:00
Pedro Alves
f7e02b3ccf packer: init plugin 2021-03-18 14:03:17 +00:00