Neovim plugin for Textwire syntax highlighting support.
Note
Hopefully support for this parser will be upstreamed by editors soon. At the moment, it must be integrated manually.
Create a file textwire.lua
in your /lua/plugins
directory inside neovim configurations:
return {
"textwire/textwire.nvim",
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
build = function()
require("textwire").build()
end,
}
Tip
The build
hook that loads highlights is needed to update highlights each time when we update the plugin. In the future we'll not need this block when this plugin will be a part Mason. We need at least 100 starts on Textwire repo to contribute to Mason
If you already installed textwire.nvim
plugin before March 30 2025
, please add branch = "master"
to your textwire.lua
file and run :Lazy sync textwire.nvim
and :Lazy update textwire.nvim
commands to update the plugin. It will fix the issue.
After that, you can remove branch = "master"
from your textwire.lua
file and next updates will be done automatically.
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/download