1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim/lua/user/plugins/lang/go.lua: pass parameters to vim.lsp.util.make_range_params

This commit is contained in:
Henrik Hautakoski 2025-09-10 17:25:02 +02:00
parent 23bb87d19e
commit 70cc0aa2e3

View file

@ -30,7 +30,7 @@ local lspservers = {
},
},
on_save = function()
local params = vim.lsp.util.make_range_params()
local params = vim.lsp.util.make_range_params(0, "utf-16")
params.context = { only = { "source.organizeImports" } }
local result = vim.lsp.buf_request_sync(0, "textDocument/codeAction", params, 1000)
for cid, res in pairs(result or {}) do