diff --git a/lua/outline/providers/nvim-lsp.lua b/lua/outline/providers/nvim-lsp.lua index 3214429..681e3bb 100644 --- a/lua/outline/providers/nvim-lsp.lua +++ b/lua/outline/providers/nvim-lsp.lua @@ -147,7 +147,7 @@ local function legacy_rename(sidebar, client, node) newName = new_name, } 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 return false end @@ -175,9 +175,11 @@ function M.rename_symbol(sidebar) sidebar:wrap_goto_location(function() -- Options table with filter key only added in nvim-0.8 -- Use vim.lsp's function because it has better support. - l.buf.rename(nil, { filter = function (cl) - return not cfg.is_client_blacklisted(cl) - end }) + l.buf.rename(nil, { + filter = function(cl) + return not cfg.is_client_blacklisted(cl) + end, + }) end) return true else diff --git a/lua/outline/sidebar.lua b/lua/outline/sidebar.lua index cd12337..321b063 100644 --- a/lua/outline/sidebar.lua +++ b/lua/outline/sidebar.lua @@ -93,7 +93,7 @@ end ---@param opts outline.OutlineOpts? function Sidebar:initial_handler(response, opts) 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 end @@ -313,7 +313,7 @@ end ---@param response outline.ProviderSymbol[] function Sidebar:refresh_handler(response) 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 end