@@ -45,7 +45,7 @@ M.open = function()
4545 .. " /"
4646 .. config .doxygen_docs_dir
4747 )
48- local html_file = cwd .. " /" .. config .doxygen_html_file
48+ local html_file = utils . os_path ( cwd .. " /" .. config .doxygen_html_file )
4949 local html_file_exists = vim .loop .fs_stat (html_file ) and vim .loop .fs_stat (html_file ).type == ' file' or false
5050
5151 if config .on_open_notification and html_file_exists then
@@ -57,7 +57,7 @@ M.open = function()
5757 end
5858
5959 if html_file_exists then
60- job = jobstart (config .browser_cmd , { html_file }, { cwd = cwd })
60+ job = jobstart (config .browser_cmd , { ' " ' .. html_file .. ' " ' }, { cwd = cwd })
6161 end
6262end
6363
@@ -79,15 +79,15 @@ M.auto_setup = function()
7979
8080 vim .notify (
8181 " Auto setup is enabled. Creating:\n "
82- .. utils .os_path (cwd .. " /" .. config .doxygen_clone_to_dir .. " /Doxyfile" )
82+ .. utils .os_path (cwd .. " /" .. config .doxygen_clone_to_dir .. " /Doxyfile" , true )
8383 .. " \n\n You can run the command now." ,
8484 vim .log .levels .INFO , { title = " dooku.nvim" }
8585 )
8686
8787 jobstart (" git" , {
8888 " clone" , " --single-branch" , " --depth 1" ,
8989 config .doxygen_clone_config_repo ,
90- config .doxygen_clone_to_dir ,
90+ ' " ' .. config .doxygen_clone_to_dir .. ' " ' ,
9191 config .doxygen_clone_cmd_post
9292 }, { cwd = cwd })
9393end
0 commit comments