neovim configuration using rocks.nvim plugin manager
0
fork

Configure Feed

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

fix: only override `rocks_config.luarocks_binary` on macos

+3 -3
+3 -3
lua/rocks-setup.lua
··· 5 5 -- Set up configuration options related to rocks.nvim (recommended to leave as default) 6 6 local rocks_config = { 7 7 rocks_path = vim.fs.normalize(install_location), 8 - -- NOTE: don't know why but rocks.nvim in macos can't set the correct value to 9 - -- `luarocks_binary` so set it manually. 10 - luarocks_binary = "luarocks", 11 8 } 12 9 if vim.fn.has('mac') == 1 then 10 + -- NOTE: don't know why but rocks.nvim in macos can't set the correct value to 11 + -- `luarocks_binary` so set it manually. 12 + rocks_config.luarocks_binary = "luarocks" 13 13 rocks_config.luarocks_config = { 14 14 arch = "macosx-aarch64" 15 15 }