local sniprun_path = vim.fn.fnamemodify( vim.api.nvim_get_runtime_file("lua/sniprun.lua", false)[1], ":p:h") .. "/.."
@@ -145,7 +143,7 @@ function M.setup_highlights()
highlight(group, styles)
end
vim.cmd('augroup END')
- else
+ else
for group, styles in pairs(colors_table) do
local gui = styles.gui and 'gui='..styles.gui or 'gui=NONE'
local sp = styles.sp and 'guisp='..styles.sp or 'guisp=NONE'
@@ -354,7 +352,7 @@ function M.health()
-- check if the log is recreated
if pcall(M.ping) then health_ok("Sent a ping to the sniprun binary")
else health_warn("Could not send a ping to the sniprun binary - is it present, executable and compatible with your CPU architecture?") end
-
+
os.execute("sleep 0.2")
if not M.file_exists(path_log_file) and not M.file_exists(path_log_file_mac) then health_error("sniprun binary incompatible or crash at start", {"Compile sniprun locally, with a clean reinstall and 'bash ./install.sh 1' as post-install command."})