From afc9c7995068e0eaf5d2972807a874537bdfbb1e Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 11 Nov 2021 13:46:50 +1100 Subject: [PATCH] resolves #27 --- lua/nvim-biscuits/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/nvim-biscuits/init.lua b/lua/nvim-biscuits/init.lua index 060eb98..ade2d99 100644 --- a/lua/nvim-biscuits/init.lua +++ b/lua/nvim-biscuits/init.lua @@ -172,8 +172,10 @@ nvim_biscuits.BufferAttach = function(bufnr) local on_lines = function() nvim_biscuits.decorate_nodes(bufnr, lang) end - vim.cmd("highlight default link " .. make_biscuit_hl_group_name(lang) .. - " BiscuitColor") + if not lang:find("-") then + vim.cmd("highlight default link " .. make_biscuit_hl_group_name(lang) .. + " BiscuitColor") + end -- we need to fire once at the very start if config allows if toggle_keybind ~= nil and