diff options
Diffstat (limited to 'lua/conf/plugins/neorg.lua')
-rw-r--r-- | lua/conf/plugins/neorg.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lua/conf/plugins/neorg.lua b/lua/conf/plugins/neorg.lua index f0fec2f..84a0b79 100644 --- a/lua/conf/plugins/neorg.lua +++ b/lua/conf/plugins/neorg.lua @@ -8,7 +8,12 @@ -- dependencies take a look at the build.lua for versioning info. Also make sure -- to check the release notes on github for info on breaking changes. -local workspace_cache = vim.fs.joinpath(vim.fn.stdpath("data"), "neorg-workspace-cache.lua") +local workspace_cache +if not vim.fs then + workspace_cache = vim.fn.stdpath("data").."/neorg-workspace-cache.lua" +else + workspace_cache = vim.fs.joinpath(vim.fn.stdpath("data"), "neorg-workspace-cache.lua") +end --- populate neorg workspaces from path or cache ---@param path string path to populate workspaces from @@ -57,8 +62,8 @@ local function populate_workspaces(path, cache) end return { 'nvim-neorg/neorg', - disable = vim.version.lt(vim.version(), { 0, 10, 0 }), - branch = 'v9.1.1', + disable = not vim.fn.has("nvim-0.10.0"), + branch = 'v9.3.0', requires = { 'nvim-lua/plenary.nvim', 'nvim-treesitter/nvim-treesitter', @@ -69,7 +74,8 @@ return { 'nvim-neorg/neorg', }, -- NOTE: these are usually installed by neorg via luarocks, the versions - -- were picked based on the build.lua found in the root of the neorg repo + -- were picked based on the neorg-scm-1.rockspec found in the root of the + -- neorg repo { 'nvim-neotest/nvim-nio', branch = 'v1.7.0' }, |