Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svermeulen/nvim-moonmaker-example
Moonscript plugin support example for neovim
https://github.com/svermeulen/nvim-moonmaker-example
lua moonscript neovim plugin vim
Last synced: 6 days ago
JSON representation
Moonscript plugin support example for neovim
- Host: GitHub
- URL: https://github.com/svermeulen/nvim-moonmaker-example
- Owner: svermeulen
- Created: 2018-10-20T04:52:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-21T17:43:55.000Z (about 6 years ago)
- Last Synced: 2024-08-07T18:41:15.175Z (3 months ago)
- Topics: lua, moonscript, neovim, plugin, vim
- Language: MoonScript
- Homepage:
- Size: 1.95 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
This is an example plugin showing how to use the [MoonMaker](https://github.com/svermeulen/nvim-moonmaker) plugin. This plugin will not work without it, because otherwise the moon directory will not be compiled.
If you edit the `HelloWorld.moon` file in the moon directory, then restart neovim, then hit `hw` then it should display the changes you've made, without needing to manually compile the moon file. Alternatively, instead of restarting neovim, call `:MoonCompile` which will update any lua files in any plugin directory that are out of date.
We use `require` in the binding so that neovim will only actually load the lua file when it's first used, and then after that it will use the cached copy of it. This works because Neovim looks for lua files in 'lua' directory of every plugin that is on the `&runtimepath`. See `h lua` for details.