From 3f12bcf64d10a4ca60cb1c7b3ced53b3cf8c98a6 Mon Sep 17 00:00:00 2001 From: maskudo Date: Sun, 23 Feb 2025 04:21:39 +0545 Subject: [PATCH] fix: disable diagnostics for devdoc buffer --- lua/devdocs/picker.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/devdocs/picker.lua b/lua/devdocs/picker.lua index 24cac23..aa01b67 100644 --- a/lua/devdocs/picker.lua +++ b/lua/devdocs/picker.lua @@ -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