Commit graph

15 commits

Author SHA1 Message Date
Gaetan Lepage
ec24d496d5 treewide (cleaning): helpers.toLuaObject -> lib.nixvim.toLuaObject 2024-12-15 21:55:51 +00:00
Austin Horstman
1c9ba58aef
modules: cleanup with lib 2024-09-03 22:12:33 -05:00
Stanislav Asunkin
9317537848 modules: avoid setting empty strings to extraConfig* options
Problem:  Some modules are setting empty strings to extraConfig* options
          with the intention to not generate any config. But empty
          strings are also values, so they are still concatenated in the
          final value of extraConfig* options. This results in a
          multiple empty strings in extraConfigs.

Solution: Avoid using optionalString when setting values to extraConfig*
          options. Use mkIf instead.

          This commit also fixes mkIf condition in autocmd module.

          `mkNeovimPlugin` is a special case. To avoid evaluating
          caller's arguments mkMerge/optionalAttrs pattern is used
          instead.
2024-07-22 23:18:53 +02:00
Gaetan Lepage
affee53852 modules: use real nix expressions for option examples 2024-06-20 08:07:10 +02:00
traxys
62f32bfc71 treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
Gaetan Lepage
bbbbfa2774 modules/autocmd: factor out autocmd-helpers 2023-11-14 23:23:30 +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
Gaetan Lepage
85abc48714 modules/autocmd: better handling of 'desc' option rename 2023-10-01 17:28:50 +02:00
Gaetan Lepage
6b4911e67f modules/autocmd: rename autoCmd.*.description to desc 2023-09-29 09:22:05 +02:00
Gaétan Lepage
db5061b4db
tests/plugins: refactor (#235) 2023-03-22 07:42:02 +01:00
Gaétan Lepage
fc62ff7d4a
modules/autocmd: autoCmd.callback: support raw value (#172) 2023-02-20 10:53:18 +00:00
Gaétan Lepage
264de8cefb
added formatter + reformat existing codebase (#175) 2023-02-20 10:42:13 +00:00
Pedro Alves
0d678ebd9d fix build 2023-02-02 01:34:48 +00:00
Gaétan Lepage
52339f0d58
modules: add autoGroups + refactoring (#147) 2023-02-01 21:25:56 +00:00
Gaétan Lepage
d0910a6ddb
modules: add autocmd (#120) 2023-01-16 23:40:29 +00:00