Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.08 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.08 KB

nvim-react (:construction: WIP)

Reactive UI rendering framework for Neovim

demo.mp4

Features

  • Functional components
  • Signals (something like useState in 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

⚠️ Running tests requires plenary.nvim to be checked out in the parent directory of this repository ⚠️

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'}"