currently if treesitter-highlighter is not loaded and there is no syntax available, :TSCaptureUnderCursor throws an error; this commit makes sure that no empty array is passed into open_floating_preview.
additionally show_hl_captures will now try to query the highlight group even if vim.b.current_syntax == nil as a fallback
this is useful inside buffers that manage their own highlight groups (nvim-tree, neogit, etc)
currently if treesitter-highlighter is not loaded and there is no syntax available,
:TSCaptureUnderCursor
throws an error; this commit makes sure that no empty array is passed intoopen_floating_preview
.additionally
show_hl_captures
will now try to query the highlight group even ifvim.b.current_syntax == nil
as a fallbackthis is useful inside buffers that manage their own highlight groups (nvim-tree, neogit, etc)