From 3b04085ad18887ae2aebf1d314031b369cdcd69e Mon Sep 17 00:00:00 2001 From: gered Date: Thu, 24 Oct 2024 22:19:55 -0400 Subject: [PATCH] fix un-escaped special char in regex match string --- nvim/lua/plugins/nvim-cmp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/plugins/nvim-cmp.lua b/nvim/lua/plugins/nvim-cmp.lua index 74413c1..d1f4173 100644 --- a/nvim/lua/plugins/nvim-cmp.lua +++ b/nvim/lua/plugins/nvim-cmp.lua @@ -65,7 +65,7 @@ return { return '' .. prefix .. '' .. suffix .. '' elseif model:match '^codestral' then return '[SUFFIX]' .. suffix .. '[PREFIX]' .. prefix - elseif model:match '^deepseek-coder' then + elseif model:match '^deepseek%-coder' then return '<|fim▁begin|>' .. prefix .. '<|fim▁hole|>' .. suffix .. '<|fim▁end|>' end end