Markdown Treesitter support with lazy.nvim #424
-
I cannot figure out how to get markdown syntax highlighting with treesitter working in my setup. This is my configuration for the plugin, using lazy.nvim: return {
"pwntester/octo.nvim",
cmd = "Octo",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
"nvim-tree/nvim-web-devicons",
"nvim-treesitter/nvim-treesitter",
},
config = function()
vim.cmd([[hi OctoEditable guibg=none]])
vim.treesitter.language.register("markdown", "octo")
require("octo").setup({ enable_builtin = true })
end,
keys = {
{ "<leader>o", "<cmd>Octo<cr>", desc = "Octo" },
},
}
If anyone else has gotten markdown syntax highlighting working with lazy.nvim I'd appreciate some guidance. I appreciate the help, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi Josh, Beautiful theme in there! Have you tried clearing the |
Beta Was this translation helpful? Give feedback.
-
I spent the whole morning trying to figure it out. It was a combination of how octo gets the highlight groups for I ended up having to adjust the source code on both plugins to get it working properly with minimal configuration. |
Beta Was this translation helpful? Give feedback.
I spent the whole morning trying to figure it out. It was a combination of how octo gets the highlight groups for
OctoEditable
and some values set by my color scheme, catppuchin.I ended up having to adjust the source code on both plugins to get it working properly with minimal configuration.