nvim-neorg / neorg

Modernity meets insane extensibility. The future of organizing your life in Neovim.
GNU General Public License v3.0
6.08k stars 202 forks source link

tree-sitter-norg installs most of the time when nvim is run #1481

Closed redmaw closed 5 days ago

redmaw commented 6 days ago

Prerequisites

Neovim Version

NVIM v0.10.0 Build type: RelWithDebInfo LuaJIT 2.1.1713773202

Neorg setup

require("neorg").setup({
    load = {
        ["core.defaults"] = {},
        ["core.dirman"] = {
            config = {
                workspaces = {
                    notes = "~/Documents/notes"
                },
                default_workspace = "notes",
                index = "index.norg"
            }
        },
        ["core.concealer"] = {}
    }
})

Actual behavior

tree-sitter-norg is downloaded and installed almost every time nvim is run.

image

Expected behavior

tree-sitter-norg is installed only once per version/rocks sync.

Steps to reproduce

  1. Install neorg via nvim.rocks.
  2. Possibly install other plugins (see plugin section for details).
  3. Open files with nvim. tree-sitter-norg should be installed most of the time during startup.

Potentially conflicting plugins

# This is your rocks.nvim plugins declaration file.
# Here is a small yet pretty detailed example on how to use it:
#
# [plugins]
# nvim-treesitter = "semver_version"  # e.g. "1.0.0"

# List of non-Neovim rocks.
# This includes things like `toml` or other lua packages.
[rocks]

# List of Neovim plugins to install alongside their versions.
# If the plugin name contains a dot then you must add quotes to the key name!
[plugins]
"rocks.nvim" = "2.31.3"
"rocks-config.nvim" = "2.0.0"
"rocks-git.nvim" = "1.5.1"
neorg = "8.7.1"
"telescope.nvim" = "scm"

[plugins.nvim-treesitter]
git = "nvim-treesitter/nvim-treesitter"
rev = "v0.9.2^{}"

[plugins.vim-commentary]
git = "tpope/vim-commentary"
rev = "v1.3^{}"

[plugins."telescope-ui-select.nvim"]
git = "nvim-telescope/telescope-ui-select.nvim"
branch = "master"

Other information

Explicitly installing tree-sitter-norg (Rocks install tree-sitter-norg) doesn't appear to help.

Help

No

Implementation help

No response

redmaw commented 5 days ago

I had require("nvim-treesitter.install").update({ with_sync = true })() left over from the lazy config which appears to have been the problem.