neovim configuration using rocks.nvim plugin manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: force `LUA_DIR` and `LUA_INCDIR` to use nix-store

Signed-off-by: Seongmin Lee <boltlessengineer@proton.me>

+9 -1
+4
init.lua
··· 5 5 if vim.fn.has('mac') == 1 then 6 6 vim.g.rocks_nvim.luarocks_config = { 7 7 arch = "macosx-aarch64", 8 + variables = { 9 + LUA_DIR = "/nix/store/8438aynxm813i6ksassvgq8bb40f8fln-lua-5.1.5-env", 10 + LUA_INCDIR = "/nix/store/8438aynxm813i6ksassvgq8bb40f8fln-lua-5.1.5-env/include", 11 + }, 8 12 } 9 13 end 10 14 require("core.keymaps")
+5 -1
lua/rocks-setup.lua
··· 11 11 -- `luarocks_binary` so set it manually. 12 12 rocks_config.luarocks_binary = "luarocks" 13 13 rocks_config.luarocks_config = { 14 - arch = "macosx-aarch64" 14 + arch = "macosx-aarch64", 15 + variables = { 16 + LUA_DIR = "/nix/store/8438aynxm813i6ksassvgq8bb40f8fln-lua-5.1.5-env", 17 + LUA_INCDIR = "/nix/store/8438aynxm813i6ksassvgq8bb40f8fln-lua-5.1.5-env/include", 18 + } 15 19 } 16 20 end 17 21