From ad5db6a907160e0d78671acf93d0ebfccd2fae30 Mon Sep 17 00:00:00 2001 From: ray-x Date: Fri, 24 Nov 2023 21:10:04 +1100 Subject: [PATCH] disable inlay in diff mode --- lua/go/inlay.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/go/inlay.lua b/lua/go/inlay.lua index 29fc591..4924713 100644 --- a/lua/go/inlay.lua +++ b/lua/go/inlay.lua @@ -299,6 +299,9 @@ end local found = false -- Sends the request to gopls to get the inlay hints and handle them function M.set_inlay_hints() + if vim.wo.diff then + return + end local bufnr = vim.api.nvim_get_current_buf() -- check if lsp is ready if not found then