chore: stylua
This commit is contained in:
@@ -147,7 +147,7 @@ local function legacy_rename(sidebar, client, node)
|
|||||||
newName = new_name,
|
newName = new_name,
|
||||||
}
|
}
|
||||||
local status, err =
|
local status, err =
|
||||||
client.request_sync('textDocument/rename', params, request_timeout, sidebar.code.buf)
|
client.request_sync('textDocument/rename', params, request_timeout, sidebar.code.buf)
|
||||||
if status == nil or status.err or err or status.result == nil then
|
if status == nil or status.err or err or status.result == nil then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
@@ -175,9 +175,11 @@ function M.rename_symbol(sidebar)
|
|||||||
sidebar:wrap_goto_location(function()
|
sidebar:wrap_goto_location(function()
|
||||||
-- Options table with filter key only added in nvim-0.8
|
-- Options table with filter key only added in nvim-0.8
|
||||||
-- Use vim.lsp's function because it has better support.
|
-- Use vim.lsp's function because it has better support.
|
||||||
l.buf.rename(nil, { filter = function (cl)
|
l.buf.rename(nil, {
|
||||||
return not cfg.is_client_blacklisted(cl)
|
filter = function(cl)
|
||||||
end })
|
return not cfg.is_client_blacklisted(cl)
|
||||||
|
end,
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ end
|
|||||||
---@param opts outline.OutlineOpts?
|
---@param opts outline.OutlineOpts?
|
||||||
function Sidebar:initial_handler(response, opts)
|
function Sidebar:initial_handler(response, opts)
|
||||||
if response == nil or type(response) ~= 'table' or self.view:is_open() then
|
if response == nil or type(response) ~= 'table' or self.view:is_open() then
|
||||||
utils.echo("No response from provider when requesting symbols!")
|
utils.echo('No response from provider when requesting symbols!')
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -313,7 +313,7 @@ end
|
|||||||
---@param response outline.ProviderSymbol[]
|
---@param response outline.ProviderSymbol[]
|
||||||
function Sidebar:refresh_handler(response)
|
function Sidebar:refresh_handler(response)
|
||||||
if response == nil or type(response) ~= 'table' then
|
if response == nil or type(response) ~= 'table' then
|
||||||
utils.echo("No response from provider when requesting symbols!")
|
utils.echo('No response from provider when requesting symbols!')
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user