mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 20:54:56 +02:00
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.
This commit is contained in:
parent
b38dbdb0dc
commit
1d8e7906c9
30 changed files with 140 additions and 119 deletions
|
@ -153,7 +153,7 @@ in {
|
|||
"Used when sorting files and directories in the tree";
|
||||
|
||||
sortFunction =
|
||||
helpers.defaultNullOpts.mkStr "nil"
|
||||
helpers.defaultNullOpts.mkLuaFn "nil"
|
||||
"Uses a custom function for sorting files and directories in the tree";
|
||||
|
||||
usePopupsForInput =
|
||||
|
@ -1041,7 +1041,7 @@ in {
|
|||
popup_border_style = popupBorderStyle;
|
||||
resize_timer_interval = resizeTimerInterval;
|
||||
sort_case_insensitive = sortCaseInsensitive;
|
||||
sort_function = mkRaw sortFunction;
|
||||
sort_function = sortFunction;
|
||||
use_popups_for_input = usePopupsForInput;
|
||||
use_default_mappings = useDefaultMappings;
|
||||
source_selector = with sourceSelector; {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue