Neovim plugin for Textwire syntax highlighting support.
Important
The project moved to codeberg.org/textwire/textwire.nvim!
Note
Hopefully support for this parser will be upstreamed by editors soon. At the moment, it must be integrated manually. In the future we'll not need this block when this plugin will be a part Mason. We need at least 100 ⭐ stars on Codeberg on Textwire repository to contribute to Mason.
return {
"https://codeberg.org/textwire/textwire.nvim",
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
build = function()
require("textwire").build()
end,
}After installing the plugin, you can open any Textwire file and write the command :TSInstall textwire to install query files.
Note
Don't forget to update treesitter with TSUpdate from time to time because that's the only way to keep Textwire syntax highlighting up-to-date.
If you use Emmet, you can set it to also apply for Textwire files:
vim.lsp.config('emmet_language_server', {
filetypes = { 'html', 'textwire' },
capabilities = cap,
})When you are contributing to this plugin, please make sure that you are running the cmd/download bash script that will download LSP binaries and treesitter highlights into bin and queries directories. You can run it with the following command:
./cmd/downloadDon't forget to make this file executable if needed.