From 7d62e435c34a41007df6d9b4a1206d7711ebe020 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Mon, 9 Dec 2024 20:55:01 -0800 Subject: [PATCH] fix: don't include Lua wrapper It's not required and unncessary --- flake.nix | 54 ++++++++++++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/flake.nix b/flake.nix index 772712d..9a2ba5a 100644 --- a/flake.nix +++ b/flake.nix @@ -89,36 +89,34 @@ in { runtime.version = "LuaJIT"; runtime.path = ["?.lua" "?/init.lua"]; - Lua = { - globals = + globals = + [ + "vim" + ] + ++ globals; + workspace = { + library = [ - "vim" + "${nvim}/share/nvim/runtime/lua" + "\${3rd}/busted/library" + "\${3rd}/luassert/library" ] - ++ globals; - workspace = { - library = - [ - "${nvim}/share/nvim/runtime/lua" - "\${3rd}/busted/library" - "\${3rd}/luassert/library" - ] - ++ plugin-luadirs - ++ pkg-libdirs - ++ pkg-sharedirs - ++ (lib.optional (meta.luvit or false) "${luvit-meta}/library"); - ignoreDir = [ - ".git" - ".github" - ".direnv" - "result" - "nix" - "doc" - ]; - }; - diagnostics = { - libraryFiles = "Disable"; - disable = disabled-diagnostics; - }; + ++ plugin-luadirs + ++ pkg-libdirs + ++ pkg-sharedirs + ++ (lib.optional (meta.luvit or false) "${luvit-meta}/library"); + ignoreDir = [ + ".git" + ".github" + ".direnv" + "result" + "nix" + "doc" + ]; + }; + diagnostics = { + libraryFiles = "Disable"; + disable = disabled-diagnostics; }; }; luarc-to-json = luarc: