Skip to content

Commit c1a6b9a

Browse files
committed
fix: We were erroneusly using cargo rustdoc instead of cargo doc.
It will now generate the docs correctly on real world scenarios.
1 parent 0ece721 commit c1a6b9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/dooku/config.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- Dooku.nivm plugin options.
22
local M = {}
3-
local is_windows = package.config:sub(1, 1) == "\\"
3+
local is_windows = vim.fn.has('win32') == 1
44
local utils = require "dooku.utils"
55

66
---Returns a default value if opt is nil.
@@ -152,7 +152,7 @@ function M.set(opts)
152152
M.rustdoc_html_file = opts.rustdoc_html_file or "index.html"
153153

154154
-- Command to run rustdoc
155-
M.rustdoc_cmd = opts.rustdoc_cmd or "cargo rustdoc"
155+
M.rustdoc_cmd = opts.rustdoc_cmd or "cargo doc"
156156

157157
-- [GODOC]
158158
---------------------------------------------------------------

0 commit comments

Comments
 (0)