From 646415fd070ed72cc8edc74a6aa9113422d9e551 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Wed, 27 Mar 2024 00:37:22 +0100 Subject: [PATCH] Fix for neorg 8.0.0 --- lua/lazy-configure.lua | 13 ++++++++++--- lua/treesitter-configure.lua | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lua/lazy-configure.lua b/lua/lazy-configure.lua index 6fbe257..3c02bc7 100644 --- a/lua/lazy-configure.lua +++ b/lua/lazy-configure.lua @@ -247,9 +247,16 @@ require('lazy').setup({ 'vim-pandoc/vim-pandoc-syntax', -- neorg { - 'nvim-neorg/neorg', - build = ':Neorg sync-parsers', - dependencies = { "nvim-lua/plenary.nvim" }, + "vhyrro/luarocks.nvim", + priority = 1000, -- We'd like this plugin to load first out of the rest + config = true, -- This automatically runs `require("luarocks-nvim").setup()` + }, + { + "nvim-neorg/neorg", + dependencies = { "luarocks.nvim" }, + lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default + version = "*", -- Pin Neorg to the latest stable release + -- config = true, }, -- vim-speeddating 'tpope/vim-speeddating', diff --git a/lua/treesitter-configure.lua b/lua/treesitter-configure.lua index 0091f74..ef4fbc6 100644 --- a/lua/treesitter-configure.lua +++ b/lua/treesitter-configure.lua @@ -3,7 +3,7 @@ vim.defer_fn(function() require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter - ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash' }, + ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash', 'norg' }, ignore_install = {'latex', 'tex', 'markdown'}, disable = {'latex', 'tex', 'markdown'},