-
When i open .norg file syntax highlighting isn't working, I'm using vimscript to configure nvim. here is the lua part of the config: local parser_configs = require('nvim-treesitter.parsers').get_parser_configs()
parser_configs.norg = {
install_info = {
url = "https://github.com/nvim-neorg/tree-sitter-norg",
files = { "src/parser.c", "src/scanner.cc" },
branch = "main"
},
}
require('nvim-treesitter.configs').setup {
ensure_installed = { "norg" },
}
require('neorg').setup {
-- Tell Neorg what modules to load
load = {
["core.defaults"] = {}, -- Load all the default modules
["core.norg.concealer"] = {}, -- Allows for use of icons
["core.norg.dirman"] = { -- Manage your directories with Neorg
config = {
workspaces = {
my_workspace = "~/neorg"
}
}
},
},
} |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Did you do |
Beta Was this translation helpful? Give feedback.
-
I think you will need to provide a bit more information than this. Here are some starter questions:
|
Beta Was this translation helpful? Give feedback.
-
I Fixed it, what i did was running |
Beta Was this translation helpful? Give feedback.
I Fixed it, what i did was running
:TSEnableAll highlight
and then running:e
and highlighting started working