Commit Graph
52 Commits
Author SHA1 Message Date
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
Pedro AlvesandGitHub 2d54272177 Revert "helpers: add mkPackageOption + refactoring (#144)" (#149)
This reverts commit b724085447.
2023-01-25 00:03:26 +00:00
Gaétan LepageandGitHub b724085447 helpers: add mkPackageOption + refactoring (#144) 2023-01-24 23:59:06 +00:00
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
3c918cfc92 misc: remove trailing whitespaces (#121)
Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
2023-01-21 17:12:09 +00:00
Alexander NortungandGitHub d2f714c40e bufferline: refactor - added package and extraOptions options. (#126) 2023-01-19 20:39:37 +00:00
Alexander NortungandGitHub 3f9effc575 general: add package options (#127)
* barbar: package option

* Base16: package option

* gruvbox: package option

* nord: package option

* one: package option

* onedark: package option

* tokyonight: package option

* nvim-cmp: package option

* coq: package option

* lspkind: package option

* helpers: added package option to mkPlugin

* fugitive: package option

* gitgutter: package option

* gitsigns: package option

* neogit: package option

* ledger: package option

* nix: package option

* plantuml-syntax: package option

* treesitter-context: package option + formatting

* treesitter-refactor: package option + formatting

* treesitter: package option

* zig: package option

* null-ls: package option

* null-ls/servers: package option

* lsp-lines: package option

* lspsaga: package option

* trouble: package option

* luasnip: added description for package option

* airline: package option

* lightline: package option

* lualine: package option

* telescope: package option

* telescope/frecency: package option

* telescope/fzf-native: package option

* telescope/media-files: package option

* comment-nvim: package option

* vim-commentary: package option

* dashboard: package option

* easyescape: package option

* emmet: package option

* endwise: package option

* floaterm: package option

* goyo: package option

* intellitab: package option

* mark-radar: package option

* notify: package option

* nvim-autopairs: package option

* nvim-tree: package option

* project-nvim: package option

* specs: package option

* startify: package option

* surround: package option

* undotree: package option
2023-01-19 10:45:15 +00:00
Pedro AlvesandGitHub 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 031d6509d7 bufferline: fix highlights being undefined 2022-01-01 15:12:48 +00:00
Pedro Alves 5249bd7420 barbar: move into bufferlines category 2021-12-12 12:18:30 +00:00
BuilditlucandPedro Alves 1562144db5 bufferline: change options 2021-11-26 11:10:17 +00:00