Skip to content
This repository was archived by the owner on Oct 28, 2026. It is now read-only.
textwirePublic archive

Latest commit

 

History

124 Commits

Folders and files

Repository files navigation

Textwire Neovim Plugin

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.

Installation

return {
    "https://codeberg.org/textwire/textwire.nvim",
    dependencies = {
        "nvim-treesitter/nvim-treesitter",
    },
    build = function()
        require("textwire").build()
    end,
}

Enable Syntax Highlighting

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.

Enable Emmet Support

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,
})

Contributing

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

Don't forget to make this file executable if needed.

Contributors

Languages