Commit graph

7 commits

Author SHA1 Message Date
traxys
8aa4b7e4ce
helpers: Add option helpers for types that are either a lua str or a value (#876)
Those types needed the following code in apply:

if builtins.isString value
then mkRaw value
else value

This commit avoids this boilerplate, and clarifies that the `str` is lua
code in the documentation.
2024-01-02 00:30:10 +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
Dane Lipscombe
f56d412f84
plugins/dap-python: Add debugpy to dap-python (#761) 2023-11-29 10:31:20 +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
Wolbyte
ad3598cada
plugins/dap: ensure extensions load after the main plugin (#526)
* plugins/dap: ensure extensions load after the main plugin

* plugins/dap: change extensionConfigLua to use mkOption

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

* plugins/dap: remove redundant null check for extensionConfigLua

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

---------

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
2023-08-17 17:33:21 +02:00
Wolbyte
d025d14f4e
plugins/dap: init + extensions + tests (#455) 2023-07-03 21:04:46 +02:00