mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-21 17:59:41 +01:00
treewide: remove internal use of helpers module arg
This commit is contained in:
parent
7add68e918
commit
dad19c1238
68 changed files with 687 additions and 758 deletions
|
|
@ -1,9 +1,4 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
helpers,
|
||||
...
|
||||
}:
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
inherit (lib) types mkOption;
|
||||
|
||||
|
|
@ -140,19 +135,19 @@ in
|
|||
content =
|
||||
if config.type == "lua" then
|
||||
# Lua
|
||||
helpers.concatNonEmptyLines [
|
||||
lib.nixvim.concatNonEmptyLines [
|
||||
config.extraConfigLuaPre
|
||||
(helpers.wrapVimscriptForLua config.extraConfigVim)
|
||||
(lib.nixvim.wrapVimscriptForLua config.extraConfigVim)
|
||||
config.extraConfigLua
|
||||
config.extraConfigLuaPost
|
||||
]
|
||||
else
|
||||
# Vimscript
|
||||
helpers.concatNonEmptyLines [
|
||||
(helpers.wrapLuaForVimscript config.extraConfigLuaPre)
|
||||
lib.nixvim.concatNonEmptyLines [
|
||||
(lib.nixvim.wrapLuaForVimscript config.extraConfigLuaPre)
|
||||
config.extraConfigVim
|
||||
(helpers.wrapLuaForVimscript (
|
||||
helpers.concatNonEmptyLines [
|
||||
(lib.nixvim.wrapLuaForVimscript (
|
||||
lib.nixvim.concatNonEmptyLines [
|
||||
config.extraConfigLua
|
||||
config.extraConfigLuaPost
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue