You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a version of lua more recent than the one in NVIM. THe version of lua I have is Lua 5.4.7.
Enable PackerRocks commands
Install a module using that command.
Actual behaviour
The module is installed using Lua 5.4 which is not the right version of lua.
Expected behaviour
The module is installed using the version of lua related to NVIM. In my case it is lua 5.1
packer files
Plugin specification file(s)
-- Packer bootstrap
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
local packer_bootstrap = false
if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
end
-- Syntax checker
-- use { 'vim-syntastic/syntastic', ft = {'c', 'cpp'} }
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then
require('packer').sync()
end
end})
The text was updated successfully, but these errors were encountered:
The
PackerRocks
command uses the latest version of lua available which cause issue. NVIM is not using the latest version of lua.nvim --version
:git --version
: git version 2.47.1Linux 6.12.1-artix1-1 #1 SMP PREEMPT_DYNAMIC Fri, 22 Nov 2024 22:38:24 +0000 x86_64 GNU/Linux
Steps to reproduce
PackerRocks
commandsActual behaviour
The module is installed using Lua 5.4 which is not the right version of lua.
Expected behaviour
The module is installed using the version of lua related to NVIM. In my case it is lua 5.1
packer files
Plugin specification file(s)
-- Packer bootstrap
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
local packer_bootstrap = false
if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
end
--
-- Add packer.lua
vim.cmd [[ packadd packer.nvim ]]
return require('packer').startup({function(use)
-- My plugins here
use { "wbthomason/packer.nvim" }
use {
"nvim-neorg/neorg",
rocks = { "lua-utils.nvim", "pathlib.nvim" },
-- rocks = { "lua-utils.nvim", "nvim-nio", "nui.nvim", "plenary.nvim", "pathlib.nvim" },
-- tag = "8.x.x", -- Pin Neorg to the latest stable release
config = function()
require("neorg").setup {
load = {
["core.defaults"] = {},
-- ["core.norg.concealer"] = {},
["core.dirman"] = { -- Manage your directories with Neorg
config = {
workspaces = {
my_workspace = "~/neorg/"
}
}
},
["core.ui.calendar"] = {}
}
}
end,
requires = {
{
"nvim-lua/plenary.nvim",
opt = true,
},
}
}
-- use '/home/frederic/Github/doas.nvim'
-- Syntax checker
-- use { 'vim-syntastic/syntastic', ft = {'c', 'cpp'} }
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then
require('packer').sync()
end
end})
The text was updated successfully, but these errors were encountered: