Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Having nested gtdworkspace opens empty buffer. #625

Closed
1 of 2 tasks
molleweide opened this issue Oct 14, 2022 · 0 comments
Closed
1 of 2 tasks

[BUG]: Having nested gtdworkspace opens empty buffer. #625

molleweide opened this issue Oct 14, 2022 · 0 comments
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@molleweide
Copy link

molleweide commented Oct 14, 2022

Prerequisites

  • I am using either 0.7 stable with the 0.0.12 tag or the latest compiled Neovim version
  • I am using the latest version of the plugin

Neovim Version

NVIM v0.7.0

Neorg setup

neorg commit used

d93126c

!!!! Our using this pinned commit could be the problem? I have to investigate this.

setup

local neorg = {}

-- https://github.com/max397574/neorg-kanban

local doom_root = require("doom.core.system").doom_root

neorg.settings = {
  load = {
    ["core.defaults"] = {},
    ["core.keybinds"] = {
      config = {
        default_keybinds = true,
        neorg_leader = ",o",
      },
    },
    ["core.norg.concealer"] = {},
    ["core.norg.qol.toc"] = {},
    ["core.norg.dirman"] = {
      config = {
        workspaces = {
          main = "~/neorg",
          gtd = "~/neorg/gtd",
          doom_docs = string.format("%s/doc", doom_root),
        },
        autodetect = true,
        autochdir = true,
      },
    },
    ["core.norg.esupports.metagen"] = {
      config = { type = "auto" },
    },
    ["core.export"] = {},
    ["core.export.markdown"] = {
      config = { extensions = "all" },
    },
    ["core.gtd.base"] = {
      config = {
        workspace = "gtd",
      },
    },
    ["core.integrations.telescope"] = {},
    ["core.integrations.nvim-cmp"] = {},
    ["core.presenter"] = {
      config = {
        zen_mode = "truezen",
      },
    },
    ["core.norg.journal"] = {
      config = {
        workspace = "main",
        journal_folder = "journal",
      },
    },
  },
}

neorg.packages = {
  ["neorg"] = {
    "nvim-neorg/neorg",
    commit = "d93126cfcc2b5f90c063676f8669fed9b0806bcd",
    after = "nvim-treesitter",
    requires = "nvim-neorg/neorg-telescope", -- https://github.com/nvim-neorg/neorg-telescope#installation
  },
  -- ["neorg-telescope"] = { "nvim-neorg/neorg-telescope", after = { "telescope.nvim" } },
}

neorg.configs = {}
neorg.configs["neorg"] = function()
  require("neorg").setup(doom.features.neorg.settings)
end
neorg.configs["neorg-telescope"] = function()
  require("telescope").load_extension("neorg")
end

...
...

return neorg

Actual behavior

  1. When running :Neorg workspace gtd<cr> WITHOUT an index.norg file in the root workspace, then it creates an empty buffer.

  2. WITH an existing index.norg file in the root workspace, then an index file is created as expected in the gtd nested workspace BUT if I use eg. ranger file browser it opens up as if I had been editing the root index file, ie. it enters the root dir when the file browser is opened.

  3. It actually seems that the gtd index file is created as long as you have the root index file as well, if I have done my testing correctly.

Expected behavior

Neorg should open ~/neorg/gtd/index.norg, and create the file if it doesn't exist.

Steps to reproduce

Use provided config.

Potentially conflicting plugins

Dunno.

Other information

I am wondering if the pinned commit we are using in doom could be the culprit?

Help

No response

Implementation help

No response

@molleweide molleweide added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Oct 14, 2022
@molleweide molleweide changed the title [BUG]: Having nested gtdworkspace opens index.norg in neorg root. [BUG]: Having nested gtdworkspace opens empty buffer. Oct 14, 2022
@danymat danymat closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.
Projects
None yet
Development

No branches or pull requests

2 participants