diff --git a/lua/metals.lua b/lua/metals.lua index 23e0e15..3c05ad5 100644 --- a/lua/metals.lua +++ b/lua/metals.lua @@ -296,7 +296,7 @@ M.organize_imports = function() end local metals_client = lsp_clients[1] - local params = lsp.util.make_range_params() + local params = lsp.util.make_range_params(nil, "utf-8") params.context = { diagnostics = {}, only = { "source.organizeImports" } } local response = metals_client.request_sync("textDocument/codeAction", params, 1000, 0)