Skip to content

Commit

Permalink
Merge pull request #8 from maskudo/disable-diagnostics-devdoc
Browse files Browse the repository at this point in the history
fix: disable diagnostics for devdoc buffer
  • Loading branch information
maskudo authored Feb 22, 2025
2 parents abcb434 + 3f12bcf commit f2c0f23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/devdocs/picker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ M.ViewDoc = function(doc, callback)
function(_, index)
local file = files[index]
vim.cmd('split ' .. file .. ' | setlocal readonly')
vim.diagnostic.enable(false, { bufnr = 0 })
end
)
end
Expand Down

0 comments on commit f2c0f23

Please sign in to comment.