awa5_rs.nvim

Neovim plugin for AWA5.RS syntax highlighting and Tree-sitter support

GPL-3.0 License

Stars
1
Committers
1

awa5_rs.nvim

Provides syntax highlighting and Tree-sitter support for AWA5.RS in Neovim using the tree-sitter-awa5_rs and tree-sitter-awatalk custom Tree-sitter grammars

The nvim-treesitter plugin needs to be installed and setup before the setup for this plugin can be run properly

Supported Neovim versions:

  • 0.10.x (Recommended)

Installation

The plugin can be installed with your favourite Neovim plugin manager such as lazy.nvim,

-- lazy.nvim
{
  "liraymond04/awa5_rs.nvim",
},

And setup in your configuration,

local treesitter_configs = require("nvim-treesitter.configs")
treesitter_configs.setup({
  -- add your other nvim-treesitter configs here
  highlight = {
    -- make sure this is enabled to see syntax highlighting
    enable = true,
  },
})

local awa5_rs = require("awa5_rs")
-- make sure this setup is run after nvim-treesitter is already setup
awa5_rs.setup({})

You will need to restart Neovim, and it will give you some errors about the awa5_rs and awatalk parsers not being yet installed

To fix this error, run:

:TSInstall awa5_rs awatalk

And restart Neovim again, and syntax highlighting should now be working for files with extension .awasm and .awa