Matt Sturgeon
f1addaaddf
lib/{neovim,vim}-plugin: remove redundant parens
2024-12-18 20:12:01 +00:00
Matt Sturgeon
6019ce784c
lib/{neovim,vim}-plugin: use loc
throughout
2024-12-18 19:47:37 +00:00
Gaetan Lepage
167167e4b3
lib/vim-plugin: expose new helpers settingsOptionDescription
and processPrefixedGlobals
and mkSettingsOption
2024-12-17 22:46:34 +01:00
Gaetan Lepage
1d50fa4f63
lib: add applyPrefixToAttrs
2024-12-17 21:40:20 +00:00
Austin Horstman
a7012e7864
treewide: originalName -> packPathName
...
We used to only think of it as the plugin repo's name, but we have been
needing to use it for the name of the plugin's packpath location.
2024-12-13 21:29:00 -06:00
Gaetan Lepage
ae78face8d
treewide: format with latest nixfmt
2024-12-06 15:25:27 +00:00
Matt Sturgeon
63cfc84abe
lib/modules: add applyExtraConfig
...
Used for
- mkVimPlugin: extraConfig
- mkNeovimPlugin: extraConfig
- mkLsp: extraConfig
- mkLsp: settings
- mkExtension (telecsope): extraConfig
2024-11-20 20:55:16 +00:00
Matt Sturgeon
de99f2938f
lib/{vim,neovim}-plugin: installPackage
-> packageDecorator
...
Replace `mkNeovimPlugin`'s `installPackage` parameter with a new
internal module option: `packageDecorator`.
The option is a function that applies some transformation to
`cfg.package`'s value before it is installed.
2024-11-15 21:44:59 +00:00
Matt Sturgeon
cd76b4feb8
lib: remove helpers
from internal usage
2024-09-29 14:41:41 +01:00
Austin Horstman
35788bbc5a
lib: cleanup with lib
2024-09-03 22:12:33 -05:00
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
Matt Sturgeon
285f6cbd7b
lib/*-plugin: use lib.mkPackageOption
internally
...
Instead of maintainers providing an actual `defaultPackage`, they should
specify the pkg name which we'll use when calling `lib.mkPackageOption`.
This makes `mkVimPlugin` and `mkNeovimPlugin` compliant with #1950 .
2024-09-04 03:07:49 +01:00
Matt Sturgeon
2a054b039e
lib/vim-plugin: drop config
arg
...
Instead, access it via an imported module
2024-09-02 10:33:50 +01:00
Austin Horstman
db4c4e5b17
lib/deprecation: expose mkSettingsRenamedOptionModules
publicly
...
Extracted the `optionsRenamedToSettings` implementation
from`mkVimPlugin` and `mkNeovimPlugin` into a new public helper.
2024-08-14 11:20:17 +00:00
Matt Sturgeon
0e98d9cf1e
lib/helpers: build recursively
2024-07-28 22:30:11 +01:00
Matt Sturgeon
b0d8c00264
lib/vim-plugin: fix + improve settings example
...
`foo_bar = true` -> `${prefix}foo_bar=1` is incorrect and confusing.
See related issue #1741
2024-06-29 00:09:43 +01:00
Gaetan Lepage
735fbeece8
Revert "helpers/vim-plugin: fix mkVimPlugin when defaultPackage.meta.homepage doesn't exist"
...
This reverts commit a6b247359f
.
2024-06-21 08:53:33 +02:00
Gaetan Lepage
846b3c991e
helpers/vim-plugin: fix mkVimPlugin when defaultPackage.meta.homepage doesn't exist
2024-06-18 11:38:52 +02:00
Matt Sturgeon
f34fda8d99
meta: extend meta.nixvimInfo
support treewide
...
Rather than supplying a `kind` and `name` pair, we now supply a raw
path.
This path could point to any nixvim option.
2024-06-07 22:22:55 +01:00
Gaetan Lepage
ef63d3477f
colorschemes: set the colorscheme as mkDefault to allow for overriding
2024-05-28 21:30:43 +02: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
Gaetan Lepage
4d471f04a5
helpers/vim-plugin/mkVimPlugin: remove useless 'options' argument
2024-03-25 22:52:32 +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
Loïc Reynier
233feeb8d2
treewide: fix typos ( #1217 )
2024-03-07 19:44:13 +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
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
d7fe40ebd8
helpers/vim-plugin/mkVimPlugin: rename package option to defaultPackage
2024-02-15 10:13:39 +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
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
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
54da635d45
helpers/vim-plugin/mkVimPlugin: rename extraConfig to settings (RFC 42)
2024-02-12 13:12:43 +01:00
Gaetan Lepage
3c174e874c
helpers/vim-plugin/mkVimPlugin: refactor
2024-02-10 17:53:41 +01:00
Gaetan Lepage
98dbe8a89b
lib/helpers: internal refactoring
2024-01-25 16:38:59 +01:00
Gaetan Lepage
a68ee73947
helpers/vim-plugin: mkPlugin -> mkVimPlugin
2024-01-25 15:19:26 +01:00
Gaetan Lepage
8f90372ee5
helpers: move mkPlugin and mkDefaultOpt to helpers.vim-plugin
2024-01-25 15:19:26 +01:00