Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Rewrite in Lua #15

Open
aileot opened this issue Jun 19, 2021 · 2 comments
Open

Rewrite in Lua #15

aileot opened this issue Jun 19, 2021 · 2 comments

Comments

@aileot
Copy link
Owner

aileot commented Jun 19, 2021

The main reasons to rewrite this plugin in Lua are as follows:

  1. Extensible
    Users can set functions to foldpeek's option variables because Lua treats functions as a first class object.
  2. Fast
    Lua is faster than Vimscript as is well known.

However, Lua plugin would be only available in neovim because I don't want to know if_lua interface.

@aileot
Copy link
Owner Author

aileot commented Oct 16, 2021

6604983 suggests any option variables could accept Funcref so that the reason 1 above (extensibility) would no longer encourage rewriting this plugin in Lua.

@aileot aileot closed this as completed Oct 16, 2021
@aileot aileot reopened this Oct 16, 2021
@aileot
Copy link
Owner Author

aileot commented Oct 16, 2021

Still, this plugin has performance issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant