Jan Kremer
7baefc8aa5
plugins: Add ccc (new PR) ( #1365 )
2024-04-02 13:24:07 +02:00
Bodleum
5fb9f0bb86
plugins/vim-css-color: init ( #1335 )
2024-03-27 21:55:24 +01:00
Gaetan Lepage
4d471f04a5
helpers/vim-plugin/mkVimPlugin: remove useless 'options' argument
2024-03-25 22:52:32 +01:00
Matt Sturgeon
9dc094489a
plugins/tmux-navigator: port to mkVimPlugin
...
Add missing settings:
- preserve_zoom
- no_mappings
Include upstream's documentation.
Deprecate old option names.
2024-03-23 13:24:58 +01:00
Gaetan Lepage
848543d527
docs: optionally add a description to plugins
2024-03-22 13:15:41 +01:00
Gaetan Lepage
9f7c78852f
helpers/vim-plugin/mkVimPlugin: simplify code
2024-03-15 09:29:16 +01:00
Gaetan Lepage
cf7102c6d2
helpers: refactor mk[Neo]vimPlugin for colorschemes handling
2024-03-12 23:00:17 +01:00
Gaetan Lepage
db33f46b5d
helpers/vim-plugin/mkVimPlugin: remove deprecated mkDefaultOpt code
2024-03-12 22:43:17 +01:00
Gaetan Lepage
601010900b
helpers/vim-plugin/mkVimPlugin: add a colorscheme argument and factor out logic
2024-03-12 20:34:31 +01:00
Gaetan Lepage
3c9a4b67ae
helpers/neovim-plugin/mkNeovimPlugin: add a colorscheme argument and factor out logic
2024-03-12 20:34:31 +01:00
Loïc Reynier
233feeb8d2
treewide: fix typos ( #1217 )
2024-03-07 19:44:13 +01:00
Gaetan Lepage
22b587f3dc
helpers/types: expose isRawType
2024-03-06 22:27:43 +01:00
Gaetan Lepage
680889ac01
helpers/vim-plugin/mkVimPlugin: make the maintainers argument mandatory
2024-03-04 11:46:56 +01:00
Gaetan Lepage
1e079a8b8e
helpers/vim-plugin/mkVimPlugin: enhance documentation of the settings option
2024-03-02 23:41:57 +01:00
Gaetan Lepage
0c1c11049c
helpers/vim-plugin/mkVimPlugin: enhance documentation of the settings option
2024-03-02 13:41:15 +01:00
Gaetan Lepage
9d4d529ee7
helpers/neovim-plugin/mkNeovimPlugin: allow lists in optionsRenamedToSettings
2024-02-22 10:11:19 +01:00
Rob Hanlon
485d21f60d
Add _nixvimTests = false to flake.lib output ( #1125 )
...
In my personal configuration, I rely on `nixvim.lib.${system}.helpers` to get access to things like `mkRaw` and `toLuaObject` for use in my extended `lib`.
With the changes made in 6d7e429537
, `nixvim.lib.${system}.helpers` can no longer be accessed directly from the `nixvim` input as `_nixvimTests` is not provided as an input attribute, so loading `helpers.nix` fails.
This small change restores what I *think* is the intended behavior of this module
2024-02-21 23:40:49 +01:00
traxys
82a24d0d42
docs: Allow to add an url in the online documentation ( #1139 )
...
* plugin/committia: Use correct maintainers import
* plugins/neocord: Remove redyf as the entry is not in the list
* docs: Allow to add an URL to the plugin
2024-02-20 21:20:59 +01:00
Gaetan Lepage
b8815f04a3
helpers/vim-plugin/mkVimPlugin: add optionsRenamedToSettings option
2024-02-19 11:25:29 +01:00
Gaetan Lepage
cef446a4da
helpers/vim-plugin/mkVimPlugin: rename addExtraConfigRenameWarning to deprecateExtraConfig
2024-02-19 11:25:29 +01:00
Gaetan Lepage
6974a6a200
helpers/neovim-plugin/mkNeovimPlugin: fix typo for deprecateExtraOptions
2024-02-19 08:30:28 +01:00
Gaetan Lepage
efdd9f2688
helpers/neovim-plugin/mkNeovimPlugin: add deprecateExtraConfig and optionsRenamedToSettings options
2024-02-18 13:51:17 +01:00
Gaetan Lepage
7f57d0b1b8
helpers/neovim-plugin/mkNeovimPlugin: add callSetup option (default true)
2024-02-18 13:51:17 +01:00
traxys
6d7e429537
tests: Introduce a way to disable options when running in tests ( #1095 )
...
In our basic template we used to provide a check based on
`mkTestDerivationFromNvim`. The issue with this check (that is handled
correctly internally) is that some plugins _can't_ be used in the test
environment, for example image.nvim like in #1085 .
This commit introduces a new function to generate such checks,
`mkTestDerivationFromNixvimModule`, that wraps a nixvim configuration
instead of a built nvim instance.
Then a configuration can rely on the newly added
`helpers.enableExceptInTests` attribute to disable parts of the
configuration depending if it is evaluated in tests or in a real final
configuration.
Resolves #1085
2024-02-15 14:27:45 +01:00
Gaetan Lepage
d7fe40ebd8
helpers/vim-plugin/mkVimPlugin: rename package option to defaultPackage
2024-02-15 10:13:39 +01:00
Gaetan Lepage
28d4d2a842
helpers/keymaps: factor out mkModeOption
2024-02-14 22:38:45 +01:00
Gaetan Lepage
44949348cb
helpers/neovim-plugin: add mkNeovimPlugin
2024-02-14 09:53:29 +01:00
Gaetan Lepage
6a8d6fd005
helpers/vim-plugin/mkVimPlugin: rename 'description' -> 'originalName'
2024-02-14 09:13:21 +01:00
Gaetan Lepage
6dd2eed613
helpers/vim-plugin/mkVimPlugin: add extraConfig option
2024-02-13 23:07:03 +01:00
Gaetan Lepage
4edd01d614
helpers/vim-plugin/mkVimPlugin: add extraOptions option
2024-02-13 23:07:03 +01:00
Alison Jenkins
7a1b458c3e
Add maintainers entry for Alison Jenkins
2024-02-13 16:53:39 +01:00
Gaetan Lepage
e8481b99f2
helpers/vim-plugin/mkVimPlugin: add imports option
2024-02-13 16:51:59 +01:00
Gaetan Lepage
0de46481ac
helpers/vim-plugin/mkVimPlugin: add namespace option
2024-02-13 16:26:46 +01:00
Gaetan Lepage
73d6574c01
helpers/vim-plugin/mkVimPlugin: add maintainers option
2024-02-13 14:16:26 +01:00
Gaetan Lepage
bd6e7e969e
helpers/vim-plugin/mkVimPlugin: remove useless 'with types;'
2024-02-13 10:34:49 +01:00
Gaetan Lepage
6a77a9edd3
helpers/vim-plugin/mkVimPlugin: don't accept random parameters
2024-02-13 10:34:49 +01:00
Gaetan Lepage
a70f580340
helpers/vim-plugin/mkVimPlugin: make use of helpers.mkSettingsOption
2024-02-12 18:46:13 +01:00
Gaetan Lepage
100876b7a3
helpers/neovim-plugin: make use of helpers.mkSettingsOption
2024-02-12 18:46:13 +01:00
Gaetan Lepage
e3e14dbe1d
helpers/options: add mkSettingsOption
2024-02-12 18:46:13 +01:00
Gaetan Lepage
54da635d45
helpers/vim-plugin/mkVimPlugin: rename extraConfig to settings (RFC 42)
2024-02-12 13:12:43 +01:00
Gabriel Arazas
0b5800a2a2
docs: clean up descriptions ( #1061 )
2024-02-11 13:51:34 +01:00
Gaetan Lepage
304c62516d
helpers/autocmd-helpers: do not import helpers.nix directly
2024-02-11 11:50:35 +01:00
Gaetan Lepage
ba818894b4
helpers/keymap-helpers: do not import helpers.nix directly
2024-02-11 11:50:35 +01:00
Gaetan Lepage
3c174e874c
helpers/vim-plugin/mkVimPlugin: refactor
2024-02-10 17:53:41 +01:00
Gaetan Lepage
2e18333dd2
helpers/neovim-plugin/mkSettingsOption: fix typo
2024-02-07 14:23:58 +01:00
traxys
507ff5b142
docs: Use a nixpkgs patch instead of copy/pasting nixpkgs functions ( #1011 )
...
This makes the code more maintainable, as it only depends on our small
patch, instead of a large number of internals of nixpkgs.
2024-02-03 19:04:09 +01:00
Gaetan Lepage
06e4a4e0c8
helpers/options: allow raw values for border options
2024-02-03 12:45:36 +01:00
Gaetan Lepage
97eed79568
modules/keymaps: allow action.__raw
2024-02-03 12:42:05 +01:00
Gaetan Lepage
89cac08ac7
helpers: add toSnakeCase converter
2024-02-02 10:50:35 +01:00
Gaetan Lepage
ac0ef61339
helpers/neovim-plugin: mkSetupOptionsOption -> mkSettingsOption
2024-02-02 10:42:38 +01:00