-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
No syntax highlighting? #1616
Comments
perhaps just try out a proper norg file? |
@max397574 "Proper" is vague. It has a .norg extension, it does have some correct syntax highlighting. But For the sake of the argument I've deleted the entire contents of this index.norg and just added viable syntax. Still getting the same error |
I did NOT have the correct syntax for the index.norg file. I needed to add a A silly but reasonable error given I just started learning what norg files are. I'd like to apologize for the waste of time Max, and thank you for looking into the issue and (correctly) informing me as to what the issue was. Maybe others which face this same issue in the future can just run start a boilerplate .norg file with the following (proven correct) syntax to see if this issue is also theirs:
I also appreciate the empty-nature of a new .norg file, but I know that for me personally I wouldn't have been confused if A) I had just done more research before posting this comment, and B) if there had been some boilerplate meta in there which activates and shows the correct syntax highlighting (then if I change it and it breaks I know it's not an issue with my setup, but instead, an issue with how I modiified the file). Something like:
|
Prerequisites
Neovim Version
NVIM v0.10.2, Build type: Release, LuaJIT 2.1.1732813678
Neorg setup
Using Astronvim, so this is just a package represented in:
lua/plugins/neorg.lua
:I have luarocks installed via brew
I figured maybe this was an issue with neovim expecting luarocks as a neovim plugin when instead its installed via brew, so I also have a
~/.config/nvim/lua/plugins/luarocks.lua
file:Alas, the issue persists.
Trying to install neorg via luarocks is unsuccessful, but various tutorials online didn't even attempt this. Figured I'd show the results regardless -- but it does fail as [email protected] is expected for the latest install of luarocks via brew, but plenary.nvim only supports up to [email protected]. Again, I don't think this is the issue but figured it was worth mentioning!
:TSInstall norg
does work and I do have it installed. I am running MacOS and have upgraded my gcc.Actual behavior
Here's what
:Neorg workspace notes
looks like for me (mostly markdown not yet converted to new norg syntax yet, as I had just gotten done installing it! But Daily Notes should be the correct title syntax):Expected behavior
There should be different syntax highlighting. Here we see a lot of markdown, as I've just pasted my working notes to an norg file. But you'll see the title Daily Notes should be of the correct title syntax. Yet, no syntax highlighting
Steps to reproduce
neorg setup
for 2 packagesPotentially conflicting plugins
No response
Other information
No response
Help
None
Implementation help
No response
The text was updated successfully, but these errors were encountered: