diff options
| author | Randy Palamar <palamar@ualberta.ca> | 2023-07-27 16:53:49 -0600 |
|---|---|---|
| committer | Randy Palamar <palamar@ualberta.ca> | 2023-08-24 20:43:48 -0600 |
| commit | 3a93220f7589ad4a198a0bc654682f696673a368 (patch) | |
| tree | ff05d73fecb8ca9c7ebb3bc0b5d6065fc71ede71 /lua/lexers/fennel.lua | |
| parent | 09ba77aa561cae40234167890c4383b92f8b94d8 (diff) | |
| download | vis-3a93220f7589ad4a198a0bc654682f696673a368.tar.gz vis-3a93220f7589ad4a198a0bc654682f696673a368.tar.xz | |
Lua API: access and set all available options
The first point of this commit is to allow all options to be read from
lua. This has a number of uses for plugin writers. They are grouped into
a couple of tables depending on what they control:
`vis.options`: table with global configuration
`win.options`: table with window specific configuration
The second point is to allow you to set all these options as if they
were simply lua variables. Technically this is already possible by
using `vis:command("set ...")` but personally I think this interface
is cleaner. Note that this already possible for some things like the
current mode (eg. vis.mode = vis.modes.VISUAL). Examples:
`vis.options.ai = true`
`win.options.brk = " !?."`
`win.options = { showeof = true, showtabs = true }
There are a number of related issues and pull requests:
closes #803: Lua API: let plugins read the values of options
closes #812: Window layout property
supersedes/closes #717: Add ability to access tabwidth from Lua
supersedes/closes #1066: expose UI layout and allow it to be set from lua API
Diffstat (limited to 'lua/lexers/fennel.lua')
0 files changed, 0 insertions, 0 deletions
