omg neorg works nowww

This commit is contained in:
2026-02-13 20:13:08 +00:00
parent 7f6429312c
commit ac4759406c
4 changed files with 45 additions and 30 deletions

View File

@@ -1,18 +1,28 @@
return {
"nvim-treesitter/nvim-treesitter",
lazy = false,
branch = "master",
build = ":TSUpdate",
config = function()
vim.api.nvim_create_autocmd("User", {
pattern = "TSUpdate",
callback = function()
require("nvim-treesitter.parsers").norg = {
install_info = {
url = "https://github.com/nvim-neorg/tree-sitter-norg",
revision = "HEAD",
},
}
end,
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
ensure_installed = {
"bash",
"html",
"javascript",
"json",
"lua",
"norg",
"markdown",
"markdown_inline",
"python",
"query",
"regex",
"tsx",
"typescript",
"vim",
"yaml",
},
})
end,
}