diff --git a/.github/workflows/luarocks.yml b/.github/workflows/luarocks.yml index d2b464523..a25592977 100644 --- a/.github/workflows/luarocks.yml +++ b/.github/workflows/luarocks.yml @@ -30,4 +30,4 @@ jobs: lua-utils.nvim == 1.0.2 plenary.nvim == 0.1.4 nui.nvim == 0.3.0 - pathlib.nvim ~> 2 + pathlib.nvim ~> 2.1 diff --git a/build.lua b/build.lua index 551888826..56cc746b8 100644 --- a/build.lua +++ b/build.lua @@ -16,7 +16,7 @@ vim.schedule(function() "lua-utils.nvim == 1.0.2", "plenary.nvim == 0.1.4", "nui.nvim == 0.3.0", - "pathlib.nvim ~> 2", + "pathlib.nvim ~> 2.1", }) package.loaded["neorg"] = nil diff --git a/lua/neorg/modules/core/dirman/module.lua b/lua/neorg/modules/core/dirman/module.lua index 0de3cbd28..4a6ca313d 100644 --- a/lua/neorg/modules/core/dirman/module.lua +++ b/lua/neorg/modules/core/dirman/module.lua @@ -305,7 +305,7 @@ module.public = { return end - local destination = (fullpath / path):with_suffix(".norg") + local destination = (fullpath / path):add_suffix(".norg") -- Generate parents just in case destination:parent_assert():mkdir(Path.const.o755 + 4 * math.pow(8, 4), true) -- 40755(oct) diff --git a/lua/neorg/modules/core/dirman/utils/module.lua b/lua/neorg/modules/core/dirman/utils/module.lua index 2749a0313..ddb537e7a 100644 --- a/lua/neorg/modules/core/dirman/utils/module.lua +++ b/lua/neorg/modules/core/dirman/utils/module.lua @@ -64,7 +64,7 @@ module.public = { }, " ")) return end - filepath = filepath:with_suffix(".norg") + filepath = filepath:add_suffix(".norg") end return filepath end, diff --git a/neorg-scm-1.rockspec b/neorg-scm-1.rockspec index 154acec40..9bb1919fb 100644 --- a/neorg-scm-1.rockspec +++ b/neorg-scm-1.rockspec @@ -16,7 +16,7 @@ dependencies = { -- "norgopolis-client.lua >= 0.2.0", -- "norgopolis-server.lua >= 1.3.1", "lua-utils.nvim", - "pathlib.nvim ~> 2", + "pathlib.nvim ~> 2.1", } source = {