Commit graph

58 commits

Author SHA1 Message Date
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 Horstman
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
Gaetan Lepage
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 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 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 Ruiz
db6b61f117 Fix typo 2024-03-31 14:41:35 +02:00
Matt Sturgeon
4f83bcf290
Rename options to avoid confusion with module options (#1324) 2024-03-29 21:58:44 +01:00
Loïc Reynier
233feeb8d2
treewide: fix typos (#1217) 2024-03-07 19:44:13 +01:00
Gaetan Lepage
e2c3459d1d lib/helpers: extraOptionsOptions -> neovim-plugin.extraOptionsOptions 2024-01-28 23:39:14 +01:00
Gaetan Lepage
0e52776433 plugins/bufferline: use nixvimTypes.highlight 2024-01-02 00:14:32 +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
d8cffe2ead plugins: remove mkCompositeOptions from implementation 2023-12-13 10:39:28 +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
Haseeb Majid
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 Lepage
dd6a114e52 plugins/misc: adapt to new maps options 2023-10-02 15:23:54 +02:00
Haseeb Majid
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 Lepage
288e46e2d8 plugins/bufferline: add missing highlight groups 2023-09-19 14:29:40 +02:00
Sim Domingo
d024526420 Fix incorrect command for barbar goToN keymaps 2023-08-08 23:10:08 +02:00
siph
7ad1288fdd bufferline: add new tab styles 2023-06-01 17:29:38 +02:00
Pedro Alves
8b5223e327
barbar.nvim: fix required module (#381/#380) 2023-05-23 14:20:36 +01:00
Tanish2002
efdcbe225f perform some statix linting and fixes 2023-05-22 23:00:53 +02:00
Gaetan Lepage
2da04fa4ad misc: remove deprecated/renamed options warnings 2023-05-20 22:52:47 +02:00
Gaétan Lepage
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 Lepage
d40db46d7f
plugins/bufferline: add TODO to remove warnings (#318) 2023-04-05 13:40:05 +02:00
Gaétan Lepage
90d14f97d4
plugins/bufferline: fix deprecated highlight options (#313) 2023-04-04 14:23:48 +02:00
Gaétan Lepage
cbf6c56385
plugins/bufferline: refactor + tests (#283) 2023-03-31 17:06:27 +02:00
Gaétan Lepage
c300601dce
plugins/barbar: add keymaps options + tests (#276) 2023-03-19 00:36:21 +01:00
Babeuh
9064aead30
fix: typo in barbar (#228) 2023-03-07 16:50:20 +01:00
Gaétan Lepage
e439cb79df
plugins/{telescope,bufferline}: make use of helpers.extraOptionsOptions (#212) 2023-03-01 22:57:19 +01:00
Shayan Rashid
497adab94b
plugins/bufferline: fix typo in 'error_diagnostic' (#218) 2023-03-01 21:30:05 +01:00
Gaétan Lepage
264de8cefb
added formatter + reformat existing codebase (#175) 2023-02-20 10:42:13 +00:00
Gaétan Lepage
0bf4313f22
plugins: barbar: add configuration options (#159) 2023-02-18 12:39:22 +00:00
LightQuantum
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 Nortung
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 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
Alexander Nortung
63c256dc3d
core: show warnings for deprecated or changed options (#129)
* moved helpers to lib folder

* Created proxy file for helpers.nix

* wrappers: removed code duplication

* null-ls: fix wrong name of variable

* added warnings module

* Added assertions

* bufferline: deprecated option

* nvim-tree: renamed options

* Fixed mkRenamedOption

* Bufferline: added new options

* Fixed deprecated option

Co-authored-by: Pedro Alves <pta2002@pta2002.com>
2023-01-24 01:28:01 +00:00
Pedro Alves
238f0c590e misc: fix mkEnableOption descriptions 2023-01-22 03:32:08 +00:00
Gaétan Lepage
3c918cfc92
misc: remove trailing whitespaces (#121)
Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
2023-01-21 17:12:09 +00:00