From 29d5f05bf9094cd0770018e19a27da81c247c503 Mon Sep 17 00:00:00 2001 From: ray-x Date: Mon, 4 Dec 2023 21:49:12 +1100 Subject: [PATCH] skip setup in diff mode --- lua/navigator/lspclient/clients.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/navigator/lspclient/clients.lua b/lua/navigator/lspclient/clients.lua index 4ce65b8..ff8aeb2 100644 --- a/lua/navigator/lspclient/clients.lua +++ b/lua/navigator/lspclient/clients.lua @@ -613,7 +613,7 @@ local function on_filetype() if ft == nil then return end - if uri == 'file://' or uri == 'file:///' then + if uri == 'file://' or uri == 'file:///' or vim.wo.diff then trace('skip loading for ft ', ft, uri) return end