-
-
Notifications
You must be signed in to change notification settings - Fork 199
Neorg not working with Rocks.nvim #1414
Replies: 2 comments · 7 replies
-
Switching to the rocks-git version (v8.4.1) didn't change a thing. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Okay I have narrowed it down to a Treesitter issue
am I missing something in my Rocks toml? [plugins]
"rocks.nvim" = "2.26.0"
"rocks-git.nvim" = "1.5.0"
"rocks-config.nvim" = "1.5.0"
"rocks-treesitter.nvim" = "scm"
... other plugins
[plugins.neorg]
git = "nvim-neorg/neorg"
rev = "v8.4.1"
[config]
plugins_dir = "plugins/"
auto_setup = false
[treesitter]
auto_install = "false"
auto_highlight = [
"rust",
"toml",
"supercollider",
"lua",
"css",
"html",
"markdown",
"norg",
"cpp",
"c",
"json",
"yaml",
] |
Beta Was this translation helpful? Give feedback.
All reactions
-
aha! #1407 |
Beta Was this translation helpful? Give feedback.
All reactions
-
Now I have gotten myself into new problems.
So Neorg does not work with Rocks.nvim on macOS as of now? |
Beta Was this translation helpful? Give feedback.
All reactions
-
if I remove my neorg config and then do a But with my dirman module conf here, it fails with the before mentioned error. require("neorg").setup({
load = {
["core.defaults"] = {}, -- Loads default behaviour
["core.concealer"] = { config = { icon_preset = "diamond" } }, -- Adds pretty icons to your documents
["core.completion"] = {
config = {
engine = "nvim-cmp"
}
},
["core.dirman"] = { -- Manages Neorg workspaces
config = {
workspaces = {
main = "~/.filer/neorg",
soe = "~/code/soe",
EO = "~/ephemeral.observer/init",
},
default_workspace = "main"
},
},
["core.journal"] = {
config = {
workspace = "main",
journal_folder = "dagbog"
}
},
["core.ui.calendar"] = {},
["core.keybinds"] = {
config = {
hook = function(keybinds)
-- Keybinds to make moving sections up and down easily
keybinds.map("norg", "n", "<A-j>", "<cmd>Neorg keybind norg core.integrations.treesitter.next.heading<cr>")
keybinds.map("norg", "n", "<A-k>", "<cmd>Neorg keybind norg core.integrations.treesitter.previous.heading<cr>")
-- calendar
keybinds.map("norg", "n", "<leader>nc", '<cmd>:lua require("neorg").modules.get_module("core.ui.calendar").select_date({})<cr>', {desc="calendar"})
-- toggle concealer
keybinds.map("norg", "n", "<leader>nt", '<cmd>:Neorg toggle-concealer<cr>', {desc="toggle-concealer"})
-- FzfLua commands for the neorg repo
-- File search
--
local path = require('neorg').modules.get_module("core.dirman").get_current_workspace()[2]
keybinds.map("norg", "n", "<C-p>",
function()
require('fzf-lua').files({cwd = path})
end,
{desc="wiki files"}
)
-- Ripgrep
keybinds.map("norg", "n", "<C-g>",
function()
require('fzf-lua').live_grep({cwd = path})
end,
{desc="wiki live grep"}
)
end,
}
}
}
})
|
Beta Was this translation helpful? Give feedback.
All reactions
-
ooookay, what.. haha. Now after a couple of reinstallations and jumping from |
Beta Was this translation helpful? Give feedback.
All reactions
-
hahah and now believe it or not. Neorg died again.
|
Beta Was this translation helpful? Give feedback.
All reactions
-
I had issues with tree sitter when setting up the new Neorg too. I don't remember what exactly the issue was but I'd recommend setting up treesitter in it's own file instead of relying on I was also forgetting to set the highlight option in treesitter and I don't see it in your rocks-config setup either. Do you set it up in a file elsewhere like require('nvim-treesitter.configs').ts.setup({
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
}) |
Beta Was this translation helpful? Give feedback.
-
Thank you so so so much for a wonderful tool. I use it everyday. It helps me in my wiki and note taking endeavors for code, music, math, memory, shell, linux, networking, electronics, hardware etc etc.
But after switching from Lazy.nvim to Rocks.nvim I actually have not been able to use Neorg.
What I noticed first while trying to get it to work (like described in the neorg README) was that my version was not up to date.
Why is the version not updated on luarocks? I cant get neorg to load/start with 8.4.0 and cant update to 8.4.1
I guess I should just get the latest via rocks-git, but then again its nice to just use luarocks.
note: as of this minute I have no idea if my trouble with getting neorg to work with rocks.nvim is related to the version or not.
I just came here as soon as I noticed my version being 8.4.0, while 8.4.1 is released.
Beta Was this translation helpful? Give feedback.
All reactions