Skip to content

Commit f2c0f23

Browse files
authored
Merge pull request #8 from maskudo/disable-diagnostics-devdoc
fix: disable diagnostics for devdoc buffer
2 parents abcb434 + 3f12bcf commit f2c0f23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: lua/devdocs/picker.lua

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ M.ViewDoc = function(doc, callback)
3333
function(_, index)
3434
local file = files[index]
3535
vim.cmd('split ' .. file .. ' | setlocal readonly')
36+
vim.diagnostic.enable(false, { bufnr = 0 })
3637
end
3738
)
3839
end

0 commit comments

Comments
 (0)