A neovim plugin for modular Treesitter syntax highlighting injections.
- Tree-sitter Query 71.5%
- Lua 27.3%
- Scheme 1.2%
| .forgejo/ISSUE_TEMPLATE | ||
| .github | ||
| examples | ||
| ftplugin | ||
| lua | ||
| plugin | ||
| queries | ||
| LICENSE | ||
| README.md | ||
Roids
Development happens at https://git.thenoetrevino.com/noe.trevino/roids.nvim. GitHub is a read-only mirror. Please open issues and pull requests there.
A neovim plugin for language injection
Installation
Lazy:
return {
{ "TheNoeTrevino/roids.nvim" },
}
Usage
Annotations:
Annotate your string variable declaration with language: {myLang}
# language: html
htmlContent = """
<div class="container">
<h1>Hello World</h1>
<p>This is an HTML example</p>
</div>
"""
Current Support
The plugin is in pre-alpha, so support is limited right now.
Java
Supported Scenarios:
- Multiline string declarations
valueparam in Spring's#Query
Python
Supported Scenarios
- Multiline string declarations
Future Plans
Future Plans
-
Add formatting into the injected language using the formatters mason has installed
-
Increase filetype support
-
Java
-
[-] Go
-
CSharp
-
Typescript/TSX
-
Javascript/JSX
-
Make use of treesitter's
inheritsto reuse queries across fts. Like ts and tsx/js and jsx
This plugin is inspired by the Jetbrains language injection.
Note
[-] means that a task is 'In Progress'