Compare commits

...

2 Commits

Author SHA1 Message Date
ray-x 29d5f05bf9 skip setup in diff mode 5 months ago
ray-x 5fb82ee1bc Avoid assert when tracing error msg 5 months ago

@ -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

@ -109,7 +109,10 @@ function M.find_definition(range, bufnr)
if definition then
-- stylua: ignore start
trace( 'error: def not found in ', bufnr, definition:range(), definition:type(), definition:parent():type())
trace( 'error: def not found in ', bufnr, definition:range(), definition:type())
if definition:parent() then
trace("def not found", definition:parent():type())
end
-- stylua: ignore end
end
end

Loading…
Cancel
Save