https://github.com/lewis6991/tsffi.nvim
https://github.com/lewis6991/tsffi.nvim
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lewis6991/tsffi.nvim
- Owner: lewis6991
- Created: 2025-05-11T10:52:16.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-05-15T13:30:56.000Z (5 months ago)
- Last Synced: 2025-09-15T11:50:08.484Z (26 days ago)
- Language: Lua
- Size: 116 KB
- Stars: 19
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tsffi.nvim
Very experimental plugin that aims to replace Neovim's treesitter interface with FFI bindings.
Why? The regular Lua-C API can be quite slow due to contexts switches. LuaJIT's FFI is fast.
## Requirements
Neovim 0.11
Optional: nvim built with https://github.com/neovim/neovim/pull/34008
## Usage
```lua
require('tsffi').setup()
```## Test
```bash
nvim -u nvimrc.lua
# e.g. nvim -u nvimrc.lua vendor/api.h
```