Skip to content

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

License

Notifications You must be signed in to change notification settings

liraymond04/awa5_rs.nvim

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published