diff --git a/lua/lspsaga/diagnostic/init.lua b/lua/lspsaga/diagnostic/init.lua index 5495bd796..7fb6c99c2 100644 --- a/lua/lspsaga/diagnostic/init.lua +++ b/lua/lspsaga/diagnostic/init.lua @@ -31,7 +31,7 @@ end local function get_num() local line = api.nvim_get_current_line() - return line:match('%[(%d+)%]') + return line:match('%*%*(%d+)%*%*') end ---get the line or cursor diagnostics