Compare commits

...

2 Commits

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

@ -613,7 +613,7 @@ local function on_filetype()
if ft == nil then if ft == nil then
return return
end 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) trace('skip loading for ft ', ft, uri)
return return
end end

@ -109,7 +109,10 @@ function M.find_definition(range, bufnr)
if definition then if definition then
-- stylua: ignore start -- 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 -- stylua: ignore end
end end
end end

Loading…
Cancel
Save