-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: extract callback in
quote
d symbol/list; deprecate callback in…
… symbol (#150) * test(autocmd): add specs for callback/command in macros * test(command): apply fnlfmt * test(command): add utils * test(command): add specs for macro as callback * test(keymap): add specs for macros in rhs * refactor(util): simplify vim-fn extraction * refactor(util): add `quoted?` * refactor(util): add `second` * refactor(util): add `->fn` * feat(autocmd): detect quoted symbol as callback function * feat(keymap): quoted symbol should be callback * refactor(autocmd): with quote or not, vim.fn.foobar should be extracted to string * feat(command): accept quoted callback format * test(keymap): add specs for quoted callback patterns * test(autocmd): define vim function `Test()` for every test * test(autocmd): add specs for quoted callback patterns * test(command): assert "Foo" is undefined before each tests * test(command): add specs for quoted callback * refactor(util): manipulate quote list simpler * test(command): fix as update for quote handling * docs(macros): update for quoted list * docs(macros): update sample codes * docs(macros): update for quoted callback * docs(macros): update note for Vim script function * docs(macros): udpate "Deprecated" * feat(keymap): deprecate symbol as identifer for callback function * feat(autocmd): deprecate callback in symbol for function * test: replace `#` with "`" as behaviour has changed
- Loading branch information
Showing
5 changed files
with
319 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.