Skip to content

Commit

Permalink
run lua/vim init before lua/vim files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerg-L committed Dec 25, 2024
1 parent 46cb6db commit 40cd0b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ lib.makeOverridable (
];

sourceLua = lib.concatMapStringsSep "\n" (x: "dofile('${x}')") (
luaFiles ++ (lib.optional (initLua != "") (writeText "init.lua" initLua))
(lib.optional (initLua != "") (writeText "init.lua" initLua)) ++ luaFiles
);
sourceVimL = lib.concatMapStringsSep "\n" (x: "vim.cmd('source ${x}')") (
vimlFiles ++ (lib.optional (initViml != "") (writeText "init.vim" initViml))
(lib.optional (initViml != "") (writeText "init.vim" initViml)) ++ vimlFiles
);
in

Expand Down

0 comments on commit 40cd0b0

Please sign in to comment.