Skip to content

Commit

Permalink
skip setup in diff mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-x committed Dec 4, 2023
1 parent 5fb82ee commit 29d5f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/navigator/lspclient/clients.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29d5f05

Please sign in to comment.