# Lua plugin

**URL:** https://discuss.codemirror.net/t/lua-plugin/2494
**Category:** Lezer
**Created:** [June 28, 2020, 6:36pm UTC](https://discuss.codemirror.net/t/lua-plugin/2494 "2020-06-28T18:36:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Stanzilla](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/stanzilla/32/820_2.png) [@Stanzilla](https://discuss.codemirror.net/u/Stanzilla)
#### Post date: [June 28, 2020, 6:36pm UTC](https://discuss.codemirror.net/t/lua-plugin/2494/1 "2020-06-28T18:36:02Z")

</div>

Hey there, I was wondering if anyone is working on a Lua plugin for Lezer yet?

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)
#### Post date: [June 28, 2020, 8:36pm UTC](https://discuss.codemirror.net/t/lua-plugin/2494/2 "2020-06-28T20:36:42Z")

</div>

Not that I know of. If you want to tackle it an need any advice, let me know.

---

<div class="post-metadata">

### Author: ![arnoson](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/arnoson/32/1901_2.png) [@arnoson](https://discuss.codemirror.net/u/arnoson)
#### Post date: [March 12, 2022, 5:13pm UTC](https://discuss.codemirror.net/t/lua-plugin/2494/3 "2022-03-12T17:13:49Z")

</div>

EDIT: figured out the indention issue (using `indentOnInput`). Will post any progress on the plugin in this thread

I started to write a language plugin for lua based on lezer and this grammar for lua: [GitHub - R167/lezer-lua: Lezer-based parser for Lua](https://github.com/R167/lezer-lua)

But this is my first time writing a language plugin. Im stuck right now with this:  
I want to indent blocks just like the `@codemirror/lang-javascript` does, but I cant get it to not indent the closing `end`. This is what i tried so far:

```javascript
indentNodeProp.add({
  Block: delimitedIndent({ closing: 'end' }),
}),

```

Any ideas?
