diff options
author | Josh Rahm <rahm@google.com> | 2023-01-19 19:37:12 +0000 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-01-26 19:05:59 +0000 |
commit | 8896b7ea0d98be33d07ae33fbd4bec47c9520f64 (patch) | |
tree | 145e2b57e944b1707c0ecf149ce6cf875978af8f /runtime/lua/man.lua | |
parent | 6a1afb97a73027abfddabf672ad80bca18974c44 (diff) | |
download | rneovim-8896b7ea0d98be33d07ae33fbd4bec47c9520f64.tar.gz rneovim-8896b7ea0d98be33d07ae33fbd4bec47c9520f64.tar.bz2 rneovim-8896b7ea0d98be33d07ae33fbd4bec47c9520f64.zip |
fix(semantic_tokens.lua): Fix nil tokens/data in semantic_tokens.lua
Some (poorly-implemented) LSPs can return an empty JSON object in
LSP responses, which could cause tokens to be nil, which would eventually
cause an error and a bad UI experience. This fix makes sure that the
tokens variable is always set to a non-nil value.
Diffstat (limited to 'runtime/lua/man.lua')
0 files changed, 0 insertions, 0 deletions