Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamharrison/lite-xl-foreign
A simple repository that bundles intepreters, and allows you to write plugins in langauges that aren't lua for `lite-xl`.
https://github.com/adamharrison/lite-xl-foreign
Last synced: 1 day ago
JSON representation
A simple repository that bundles intepreters, and allows you to write plugins in langauges that aren't lua for `lite-xl`.
- Host: GitHub
- URL: https://github.com/adamharrison/lite-xl-foreign
- Owner: adamharrison
- Created: 2024-02-28T00:01:12.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-28T05:49:24.000Z (9 months ago)
- Last Synced: 2024-02-29T01:29:38.393Z (9 months ago)
- Language: C
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lite-xl-foreign
A simple repository that bundles intepreters, and allows you to write plugins in langauges that aren't lua for `lite-xl`.
## Description
You may ask: dear god, *why*?
Better question: **why not**?
## Examples
Installing the `ruby-loader` plugin allows you to do things like installing the following plugin into your normal folder plugins folder in `lite-xl`:
```ruby
# mod-version:3core = Lua.require("core")
core.log_quiet.call("TEST")
old_log_quiet = core.log_quiet
core.log_quiet = Proc.new { |str, *args|
puts "LOG QUIET: #{str} #{args}"
old_log_quiet.call(str, *args)
}
```You should have full interop with most `lite-xl` lua functions.