Matt Sturgeon
9bf7724b98
lib/options: add mkCompositeOption'
variant
2024-06-01 14:33:40 +01:00
Matt Sturgeon
fc542329cd
lib/options: add mkNullOrOption'
variant
2024-06-01 14:33:40 +01:00
Matt Sturgeon
57003fea4e
lib/options: inline mkDefaultDesc
into mkDesc
...
And add function documentation.
2024-06-01 14:33:40 +01:00
Gaetan Lepage
d15fade62b
helpers/toLuaObject: fix rawKey handling
2024-05-31 23:31:11 +02:00
Gaetan Lepage
0ba2ea5416
helpers: add rawKeysAttrs
2024-05-31 21:53:40 +02:00
Gaetan Lepage
03c5f5eb74
helpers/toLuaObject: add support for raw keys
2024-05-31 21:53:40 +02:00
Matt Sturgeon
29922e13f7
modules/keymaps: fix false-positive lua
warning
2024-05-31 20:38:53 +01:00
Ismaïl Senhaji
6ff3493c9b
modules/keymaps: doc: add backticks around noremap
...
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2024-05-30 22:27:24 +02:00
Ismaïl Senhaji
6d3d3bd0c2
modules/keymaps: doc: add backticks around special arguments
2024-05-30 22:27:24 +02:00
Ismaïl Senhaji
bea8492e19
modules/keymaps: add "buffer" option to mapConfigOptions
2024-05-30 15:46:30 +02:00
Matt Sturgeon
51240cef0e
lib/options: defaultNullOpts
delegate string rendering
2024-05-30 14:27:37 +01:00
Matt Sturgeon
ff1ab1700c
lib/options: mkEnum
quote default if string
...
As there's only a handful of call-sites to fix, ensure all `mkEnum`
defaults are passed in as the correct type (tree wide) and change
`mkEnum` to now correctly render string-type defaults "quoted" (like
`mkString` does).
2024-05-30 14:27:37 +01:00
ben
ea69144d60
maintainers: add b3nb5n
2024-05-30 14:23:23 +02:00
Nate Smith
099f9f0f59
maintainers: add nwjsmith
2024-05-29 20:52:07 +01:00
Matt Sturgeon
b113bc69ea
lib/options: mkStr
quote default string
2024-05-29 09:50:03 +01:00
Matt Sturgeon
cedc1e4799
lib/options: use code-block for multiline defaults
...
Detect whether a plugin default is multiline using `hasInfix "\n"`.
Also remove `multiline=false` from the `toPretty` call.
2024-05-29 09:25:55 +01:00
Gaetan Lepage
ef63d3477f
colorschemes: set the colorscheme as mkDefault to allow for overriding
2024-05-28 21:30:43 +02:00
Matt Sturgeon
daa6b0f5cf
lib/options: defaultNullOpts support non-string defaults
2024-05-28 20:16:17 +01:00
Matt Sturgeon
8212bf1cd2
modules/keymaps: deprecate lua
option
2024-05-26 15:26:06 +01:00
Gaetan Lepage
7c4fe30f81
lib/options: introduce new mkPackageOption for dependencies
2024-05-17 22:15:47 +02:00
Gaetan Lepage
26367692da
lib/options: rename mkPackageOption to mkPluginPackageOption
2024-05-17 22:15:47 +02:00
Gaetan Lepage
3766e36335
lib/options: change "default: ..." to "Plugin default: ..."
2024-05-17 15:03:21 +02:00
Gaetan Lepage
7697a1cc5a
lib/options: refactor
2024-05-17 15:03:21 +02:00
Gaetan Lepage
72ff1489c7
lib/options: make use of previously unused mkNullableWithRaw internally
2024-05-16 22:36:51 +02:00
traxys
62f32bfc71
treewide: Reformat with nixfmt
2024-05-05 22:00:40 +02:00
svl
8f9e35481f
helpers/maintainers: add svl
2024-04-28 17:57:35 +02:00
theabm
b4a30dd1d6
lib/maintainers: add AndresBermeoMarinelli
2024-04-28 15:51:40 +02:00
Matt Sturgeon
21c233919d
output: format init.lua
2024-04-13 12:46:25 +01:00
Kareem-Medhat
3a4de0bb2f
plugins/coq-nvim: fix settings not being set when lsp is not enabled ( #1408 )
2024-04-13 13:36:45 +02:00
Gaetan Lepage
776cc84ad1
helpers/types: allow highlight.ctypes to accept a string
2024-04-13 11:00:19 +02:00
Gaetan Lepage
d348bb3e03
lib/types: factor out logLevel enum for standalone use
2024-04-07 11:30:24 +02:00
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