Commit Graph
63 Commits
Author SHA1 Message Date
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
Austin Horstman c8bb7880bf plugins/barbecue: migrate to mkNeovimPlugin 2024-09-03 20:58:23 -05:00
Austin Horstman 279258294b plugins/navic: migrate to mkNeovimPlugin 2024-09-03 20:48:08 -05:00
Matt Sturgeon 18b7597e6c lib/neovim-plugin: drop config arg 2024-09-02 10:35:52 +01:00
Austin Horstman 46cf3dad9f plugins/bufferline: use iconsPackage 2024-08-29 14:23:43 -05:00
Austin Horstman f59a3c70aa plugins/barbar: use iconsPackage 2024-08-29 14:23:43 -05:00
Austin Horstman b470800240 plugins/bufferlines/barbar: migrate helpers -> lib.nixvim 2024-08-22 09:43:47 -05:00
Matt Sturgeon 7fb1f9dd9d modules/keymap: improve lua deprecation
- Replace nullable lua option with a no-default option.
- Made it so the deprecated option is only declared when `lua = true` is passed.
- Replace `normalizeMappings` with a `removeDeprecatedMapAttrs` helper.
- Added warnings for all options that historically had `lua` support.
2024-08-18 22:11:11 +01:00
Austin HorstmanandGaetanLepage cb398ce4ba plugins/bufferline: migrate to mkNeovimPlugin
Also resolves https://github.com/nix-community/nixvim/issues/1890 by
automatically setting up `diagnostics.update_in_insert` for the user.
2024-08-14 11:20:17 +00:00
Matt Sturgeon d57cbd867a plugins/bufferlines: normalize plugin defaults 2024-06-21 08:45:30 +01:00
Matt Sturgeon 6e979dbe94 plugins/barbar: switch from mkDesc to pluginDefaultText 2024-06-14 10:49:06 +01:00
Matt Sturgeon 302262304e lib/keymaps: refactor mkMapOptionSubmodule again
Allow passing in `key` and `action` as either bool or an attrset.

If `false`, the option is omitted. If `true` or an attrset, the option is included.
If an attrset is used, it will update the default `mkOption` args.
This is useful for overriding `type` or adding an `example`.
2024-06-07 15:42:54 +01:00
34d56c712e plugins/barbar: add keymaps.* options for missing actions
Co-authored-by: Ismaïl Senhaji <134528+iSma@users.noreply.github.com>
2024-06-03 00:25:46 +02:00
Gaetan LepageandGaétan Lepage 1c270521ad plugins/barbar: switch to mkNeovimPlugin + update options 2024-06-03 00:25:46 +02:00
Matt Sturgeon d136c08f3a plugins: normalise null plugin-defaults
Replaced all instances of `"null"` with `null`, when passing
plugin-defaults to `defaultNullOpts` functions.
2024-06-02 03:18:10 +01:00
Gaetan LepageandGaétan Lepage 26367692da lib/options: rename mkPackageOption to mkPluginPackageOption 2024-05-17 22:15:47 +02:00
traxys 62f32bfc71 treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
Alejandro Pinar RuizandGaétan Lepage db6b61f117 Fix typo 2024-03-31 14:41:35 +02:00
Matt SturgeonandGitHub 4f83bcf290 Rename options to avoid confusion with module options (#1324) 2024-03-29 21:58:44 +01:00
Loïc ReynierandGitHub 233feeb8d2 treewide: fix typos (#1217) 2024-03-07 19:44:13 +01:00
Gaetan LepageandGaétan Lepage e2c3459d1d lib/helpers: extraOptionsOptions -> neovim-plugin.extraOptionsOptions 2024-01-28 23:39:14 +01:00
Gaetan LepageandGaétan Lepage 0e52776433 plugins/bufferline: use nixvimTypes.highlight 2024-01-02 00:14:32 +01:00
traxysandGitHub 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
traxysandGitHub 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 LepageandGaétan Lepage d8cffe2ead plugins: remove mkCompositeOptions from implementation 2023-12-13 10:39:28 +01:00
Gaetan LepageandGaétan Lepage 19f39c3b1b plugins: swith to the new behaviour of mkRaw 2023-11-23 11:39:41 +01:00
Gaetan LepageandGaétan Lepage b6724702b4 misc: refactor imports, prefer adding helpers to args rather than importing it 2023-11-06 16:33:39 +01:00
eb84003a09 plugins/barbecue: init + tests (#622)
* doing changes

* fixing stuff

* fixing stuff

* Update plugins/bufferlines/barbecue.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* Update plugins/bufferlines/barbecue.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* Update plugins/bufferlines/barbecue.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* Update tests/test-sources/plugins/bufferlines/barbecue.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* fix function formatting

* Update plugins/bufferlines/barbecue.nix

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* fix semicolon in modified

---------

Co-authored-by: Haseeb Majid <haseeb.majid@imaginecurve.com>
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2023-10-06 13:57:31 +02:00
Gaetan LepageandGaétan Lepage dd6a114e52 plugins/misc: adapt to new maps options 2023-10-02 15:23:54 +02:00
32a64af231 plugins/navic: init + tests (#597)
Co-authored-by: Haseeb Majid <haseeb.majid@imaginecurve.com>
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2023-09-21 14:48:05 +02:00
Gaetan LepageandGaétan Lepage 288e46e2d8 plugins/bufferline: add missing highlight groups 2023-09-19 14:29:40 +02:00
Sim DomingoandGaétan Lepage d024526420 Fix incorrect command for barbar goToN keymaps 2023-08-08 23:10:08 +02:00
siphandGaétan Lepage 7ad1288fdd bufferline: add new tab styles 2023-06-01 17:29:38 +02:00
Pedro AlvesandGitHub 8b5223e327 barbar.nvim: fix required module (#381/#380) 2023-05-23 14:20:36 +01:00
Tanish2002andGaétan Lepage efdcbe225f perform some statix linting and fixes 2023-05-22 23:00:53 +02:00
Gaetan LepageandGaétan Lepage 2da04fa4ad misc: remove deprecated/renamed options warnings 2023-05-20 22:52:47 +02:00
Gaétan LepageandGitHub 35c570deac plugins/barbar: refactoring + nix flake update (#317)
* flake: update inputs

* plugins/barbar: refactoring + fix options
2023-04-06 10:28:13 +02:00
Gaétan LepageandGitHub d40db46d7f plugins/bufferline: add TODO to remove warnings (#318) 2023-04-05 13:40:05 +02:00
Gaétan LepageandGitHub 90d14f97d4 plugins/bufferline: fix deprecated highlight options (#313) 2023-04-04 14:23:48 +02:00
Gaétan LepageandGitHub cbf6c56385 plugins/bufferline: refactor + tests (#283) 2023-03-31 17:06:27 +02:00
Gaétan LepageandGitHub c300601dce plugins/barbar: add keymaps options + tests (#276) 2023-03-19 00:36:21 +01:00
BabeuhandGitHub 9064aead30 fix: typo in barbar (#228) 2023-03-07 16:50:20 +01:00
Gaétan LepageandGitHub e439cb79df plugins/{telescope,bufferline}: make use of helpers.extraOptionsOptions (#212) 2023-03-01 22:57:19 +01:00
Shayan RashidandGitHub 497adab94b plugins/bufferline: fix typo in 'error_diagnostic' (#218) 2023-03-01 21:30:05 +01:00
Gaétan LepageandGitHub 264de8cefb added formatter + reformat existing codebase (#175) 2023-02-20 10:42:13 +00:00
Gaétan LepageandGitHub 0bf4313f22 plugins: barbar: add configuration options (#159) 2023-02-18 12:39:22 +00:00
LightQuantumandGitHub 7ccb2b0608 utils: fix #129
* wrappers: fix missing variable

* bufferline: fix type error if indicator is null
2023-02-14 19:51:56 +00:00
Alexander NortungandGitHub e5ef91be0b bufferline: fixed default (#152)
* bufferline: fixed default

* bufferline: fixed default for highlights
2023-02-14 19:49:19 +00:00
Pedro Alves 8ef6945e75 bufferline: fix 2023-01-28 14:55:00 +00:00
Gaétan LepageandGitHub c73bef16ab helpers: add mkPackageOption + refactoring (#144) (#150) 2023-01-25 18:46:49 +00:00