diff options
author | Gregory Anders <greg@gpanders.com> | 2021-11-15 08:55:31 -0700 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2021-11-15 09:05:40 -0700 |
commit | cc488376221e3792a2c69d1507bdfe405eaebc73 (patch) | |
tree | 697af8ae4ee6ed223c5e8b41bad9fc682552ae25 /test/functional/lua/diagnostic_spec.lua | |
parent | 8f984dc1f29aa6ce41f233b983453bfd795e8238 (diff) | |
download | rneovim-cc488376221e3792a2c69d1507bdfe405eaebc73.tar.gz rneovim-cc488376221e3792a2c69d1507bdfe405eaebc73.tar.bz2 rneovim-cc488376221e3792a2c69d1507bdfe405eaebc73.zip |
feat(diagnostic): allow 'prefix' option to return highlight
Extend the 'prefix' option for `open_float` to also provide an optional
highlight group for the prefix string.
Diffstat (limited to 'test/functional/lua/diagnostic_spec.lua')
-rw-r--r-- | test/functional/lua/diagnostic_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/lua/diagnostic_spec.lua b/test/functional/lua/diagnostic_spec.lua index ec53916024..0ac831ab7f 100644 --- a/test/functional/lua/diagnostic_spec.lua +++ b/test/functional/lua/diagnostic_spec.lua @@ -1397,7 +1397,7 @@ describe('vim.diagnostic', function() return lines ]]) - eq("Error executing lua: .../diagnostic.lua:0: prefix: expected 'string' or 'function', got 42", + eq("Error executing lua: .../diagnostic.lua:0: prefix: expected 'string' or 'table' or 'function', got 42", pcall_err(exec_lua, [[ vim.diagnostic.open_float(0, { prefix = 42 }) ]])) end) end) |