mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
Compare commits
1 commit
6d455aa4c4
...
7d9c3e6cb6
Author | SHA1 | Date | |
---|---|---|---|
|
7d9c3e6cb6 |
1 changed files with 2 additions and 6 deletions
|
@ -29,8 +29,6 @@ inputs: {
|
||||||
# alias to the internal configuration
|
# alias to the internal configuration
|
||||||
vimOptions = module.config.vim;
|
vimOptions = module.config.vim;
|
||||||
|
|
||||||
luajit = vimOptions.package.lua;
|
|
||||||
|
|
||||||
# build a vim plugin with the given name and arguments
|
# build a vim plugin with the given name and arguments
|
||||||
# if the plugin is nvim-treesitter, warn the user to use buildTreesitterPlug
|
# if the plugin is nvim-treesitter, warn the user to use buildTreesitterPlug
|
||||||
# instead
|
# instead
|
||||||
|
@ -43,8 +41,6 @@ inputs: {
|
||||||
inherit src;
|
inherit src;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs.vimUtils; [
|
nativeBuildInputs = with pkgs.vimUtils; [
|
||||||
luajit
|
|
||||||
|
|
||||||
vimCommandCheckHook
|
vimCommandCheckHook
|
||||||
vimGenDocHook
|
vimGenDocHook
|
||||||
neovimRequireCheckHook
|
neovimRequireCheckHook
|
||||||
|
@ -106,12 +102,12 @@ inputs: {
|
||||||
|
|
||||||
luaConfig =
|
luaConfig =
|
||||||
if vimOptions.byteCompileLua
|
if vimOptions.byteCompileLua
|
||||||
then pkgs.runCommandLocal "init.lua" {text = vimOptions.builtLuaConfigRC;} "${luajit}/bin/luajit -bd -- - $out <<< \"$text\""
|
then pkgs.runCommandLocal "init.lua" {text = vimOptions.builtLuaConfigRC;} "${pkgs.luajit}/bin/luajit -bd -- - $out <<< \"$text\""
|
||||||
else pkgs.writeText "init.lua" vimOptions.builtLuaConfigRC;
|
else pkgs.writeText "init.lua" vimOptions.builtLuaConfigRC;
|
||||||
|
|
||||||
extraLuaFiles =
|
extraLuaFiles =
|
||||||
if vimOptions.byteCompileLua
|
if vimOptions.byteCompileLua
|
||||||
then map (file: pkgs.runCommandLocal (baseNameOf file) {} "${luajit}/bin/luajit -bd -- ${file} $out") vimOptions.extraLuaFiles
|
then map (file: pkgs.runCommandLocal (baseNameOf file) {} "${pkgs.luajit}/bin/luajit -bd -- ${file} $out") vimOptions.extraLuaFiles
|
||||||
else vimOptions.extraLuaFiles;
|
else vimOptions.extraLuaFiles;
|
||||||
|
|
||||||
# Wrap the user's desired (unwrapped) Neovim package with arguments that'll be used to
|
# Wrap the user's desired (unwrapped) Neovim package with arguments that'll be used to
|
||||||
|
|
Loading…
Reference in a new issue