summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 5672c10c..3e8fec24 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1020,7 +1020,7 @@ m.register 'textDocument/formatting' {
pformatting.updateConfig(uri)
local core = require 'core.formatting'
- local edits = core(uri)
+ local edits = core(uri, params.options)
if not edits or #edits == 0 then
return nil
end
@@ -1058,7 +1058,7 @@ m.register 'textDocument/rangeFormatting' {
pformatting.updateConfig(uri)
local core = require 'core.rangeformatting'
- local edits = core(uri, params.range)
+ local edits = core(uri, params.range, params.options)
if not edits or #edits == 0 then
return nil
end