mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
set colorscheme before setting globals (#46)
This commit is contained in:
parent
4adcb35851
commit
a38d531bf4
1 changed files with 13 additions and 8 deletions
|
@ -75,13 +75,18 @@ in
|
|||
|
||||
config =
|
||||
let
|
||||
customRC = config.extraConfigVim + (optionalString (config.extraConfigLua != "" || config.extraConfigLuaPre != "" || config.extraConfigLuaPost != "") ''
|
||||
lua <<EOF
|
||||
${config.extraConfigLuaPre}
|
||||
${config.extraConfigLua}
|
||||
${config.extraConfigLuaPost}
|
||||
EOF
|
||||
'');
|
||||
customRC =
|
||||
(optionalString (config.extraConfigLuaPre != "") ''
|
||||
lua <<EOF
|
||||
${config.extraConfigLuaPre}
|
||||
EOF
|
||||
'') +
|
||||
config.extraConfigVim + (optionalString (config.extraConfigLuaPre != "" || config.extraConfigLuaPost != "") ''
|
||||
lua <<EOF
|
||||
${config.extraConfigLua}
|
||||
${config.extraConfigLuaPost}
|
||||
EOF
|
||||
'');
|
||||
|
||||
defaultPlugin = {
|
||||
plugin = null;
|
||||
|
@ -100,7 +105,7 @@ in
|
|||
# cda1f8ae468 - neovim: pass packpath via the wrapper
|
||||
// optionalAttrs (functionArgs pkgs.neovimUtils.makeNeovimConfig ? configure) {
|
||||
configure.packages =
|
||||
{ nixvim = { start = map (x: x.plugin) normalizedPlugins; opt = []; }; };
|
||||
{ nixvim = { start = map (x: x.plugin) normalizedPlugins; opt = [ ]; }; };
|
||||
});
|
||||
|
||||
extraWrapperArgs = optionalString (config.extraPackages != [ ])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue