summary refs log tree commit diff
path: root/.vim/colorizer-nohash.patch
blob: 2215c7621f238a2f7f4c535215339c077cdf951f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/lua/colorizer.lua b/lua/colorizer.lua
index e47e079..d986a4a 100644
--- a/lua/colorizer.lua
+++ b/lua/colorizer.lua
@@ -190,7 +190,7 @@ local function rgb_hex_parser(line, i, minlen, maxlen)
 	if i > 1 and byte_is_alphanumeric(line:byte(i-1)) then
 		return
 	end
-	if line:byte(i) ~= b_hash then
+	if line:byte(i) ~= b_hash and (not vim.g.colorizer_nohash) then
 		return
 	end
 	local j = i + 1