Skip to content

Commit

Permalink
just watch feature - mode
Browse files Browse the repository at this point in the history
  • Loading branch information
grierson committed Aug 11, 2023
1 parent bee9c38 commit 2200893
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
3 changes: 3 additions & 0 deletions fnl/formedit/api/motion.fnl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(local {: autoload} (require :nfnl.module))
(local notify (autoload :nfnl.notify))

Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@
(fn []
(h.setup {:content "(a)" :cursor [1 2]})
(vim.api.nvim_win_set_cursor 0 [1 1])
(h.expect {:content "(a)" :cursor [1 1]})))
(it "no movement"
(fn []
(h.setup {:content "(a)" :cursor [1 1]})
(vim.api.nvim_win_set_cursor 0 [1 1])
(h.expect {:content "(a)" :cursor [1 1]})))))
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ focus feature: prepare
--headless \
--noplugin \
-u lua/spec/init.lua \
-c "PlenaryBustedDirectory lua/spec/{{feature}} { minimal_init='lua/spec/init.lua', sequential=true }"
-c "PlenaryBustedDirectory lua/spec/nfnl/api/{{feature}} { minimal_init='lua/spec/init.lua', sequential=true }"

watch feature:
fswatch -o lua/api/{{feature}}.lua lua/spec/api/{{feature}}/{{feature}}_spec.lua | xargs -n1 -I{} just focus {{feature}}
fswatch -o lua/formedit/api/{{feature}}.lua lua/spec/nfnl/api/{{feature}}/{{feature}}_spec.lua | xargs -n1 -I{} just focus {{feature}}

5 changes: 5 additions & 0 deletions lua/formedit/api/motion.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions lua/spec/nfnl/api/motion/motion_spec.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2200893

Please sign in to comment.