Commit graph

22 commits

Author SHA1 Message Date
Gaetan Lepage
ec24d496d5 treewide (cleaning): helpers.toLuaObject -> lib.nixvim.toLuaObject 2024-12-15 21:55:51 +00:00
Matt Sturgeon
2f49c76a6a
lib: remove nixvimTypes alias 2024-09-27 08:31:07 +01: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
Saien Govender
16db91b37a Fix typo in highlights.nix
Example of highlightOverride used incorrect option name.
2024-06-19 16:17:23 +02:00
traxys
62f32bfc71 treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
Austin Horstman
30bc345dee modules/highlights: add highlightOverride 2024-02-11 19:53:16 +01:00
Gabriel Arazas
0b5800a2a2
docs: clean up descriptions (#1061) 2024-02-11 13:51:34 +01:00
Gaetan Lepage
3bbb3d5453 modules/highlights: remove useless mkIf 2024-02-09 11:28:51 +01:00
Austin Horstman
a181b63aaf
modules/highlights: post -> pre loading (#1016) 2024-02-05 01:00:50 +01:00
Gaetan Lepage
d88a30fba6 helpers: highlightType -> nixvimTypes.highlight 2024-01-01 23:55:27 +01:00
Gaetan Lepage
903e2a1ccb modules/highlight: use double quotes in examples 2023-12-05 11:27:05 +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
36a6ab4ba7 helpers: add highlightType and defaultNullOpts.mkHighlight 2023-08-10 15:27:29 +02: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
Gaétan Lepage
ae7c5f8869
modules/higlights: fix string concatenation (#136) 2023-01-22 12:41:24 +00:00
Pedro Alves
d3b63cafbb modules/highlights: fix typo 2023-01-21 17:21:12 +00:00
Gaétan Lepage
1022eae161
modules/highlights: added a wrapper around vim.fn.matchadd (#123)
* modules/highlights: added a wrapper around vim.fn.matchadd

* modules/highlights: fix mkIf

Co-authored-by: Pedro Alves <pta2002@pta2002.com>
2023-01-21 17:09:58 +00:00
Pedro Alves
dd9ec124a2 docs: fix documentation generation 2022-12-29 17:34:54 +00:00
Pedro Alves
bd5c46202e nixvim: support highlight groups 2022-11-11 02:15:23 +00:00