diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-08-01 10:07:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-01 10:07:26 -0400 |
| commit | e02755cd9ff29277d14421c9df627e5dc48e4f67 (patch) | |
| tree | d3a35b8bfbf2be5accd6e572953a436a9eb8d049 /runtime/lua/vim/treesitter/_range.lua | |
| parent | b11f1b1f76296e0296bb21a54315e2a18c8d6a6e (diff) | |
| download | rneovim-e02755cd9ff29277d14421c9df627e5dc48e4f67.tar.gz rneovim-e02755cd9ff29277d14421c9df627e5dc48e4f67.tar.bz2 rneovim-e02755cd9ff29277d14421c9df627e5dc48e4f67.zip | |
fix(options): ":set foo?" for Lua callbacks #41100
Problem:
`:set foo=<tab>` and `:set foo?` for func/expr options set to a Lua
function, always displays "v:lua".
The existing "<Lua N: file:line>" form was avoided because the ref id
N changes on every read of the same option.
Solution:
- Don't attempt to tab-complete Lua functions.
- Show "<Lua file:line>" (or "<Lua>" if source file is unknown).
Example:
:set operatorfunc?
operatorfunc=<Lua ~/.config/nvim/init.lua:42>
Diffstat (limited to 'runtime/lua/vim/treesitter/_range.lua')
0 files changed, 0 insertions, 0 deletions