nvim-react
nvim-react copied to clipboard
Reactive UI framework for neovim
nvim-react (:construction: WIP)
Reactive UI rendering framework for Neovim
Features
- [x] Functional components
- [x] Signals (something like
useStatein ReactJS) - [ ] Complex data stores (:construction: WIP)
- [ ] Lifecycle callbacks
- [ ] Keymap events
- [ ] Highlighting
Development
Open the project
nvim -c "luafile dev/init.lua"
Try <leader><leader>w keymap
Run tests
:warning: Running tests requires plenary.nvim to be checked out in the parent directory of this repository :warning:
You can then run:
nvim \
--headless \
--noplugin \
-u tests/minimal.vim \
-c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}"
Or if you want to run a single test file:
nvim \
--headless \
--noplugin \
-u tests/minimal.vim \
-c "PlenaryBustedDirectory tests/path_to_file.lua {minimal_init = 'tests/minimal.vim'}"