mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 20:10:03 +02:00
nvim/lua/user/plugins/lang/go.lua: pass parameters to vim.lsp.util.make_range_params
This commit is contained in:
parent
23bb87d19e
commit
70cc0aa2e3
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ local lspservers = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
on_save = function()
|
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" } }
|
params.context = { only = { "source.organizeImports" } }
|
||||||
local result = vim.lsp.buf_request_sync(0, "textDocument/codeAction", params, 1000)
|
local result = vim.lsp.buf_request_sync(0, "textDocument/codeAction", params, 1000)
|
||||||
for cid, res in pairs(result or {}) do
|
for cid, res in pairs(result or {}) do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue