From bc6433d7e585d64817edb44049700ea2c002f045 Mon Sep 17 00:00:00 2001 From: hafeoz Date: Sat, 26 Nov 2022 00:57:25 +0000 Subject: docs(sourcery): put setup inside code block (#2258) --- lua/lspconfig/server_configurations/sourcery.lua | 26 ++++++++++++++---------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/sourcery.lua b/lua/lspconfig/server_configurations/sourcery.lua index 6f11ed16..608a816f 100644 --- a/lua/lspconfig/server_configurations/sourcery.lua +++ b/lua/lspconfig/server_configurations/sourcery.lua @@ -35,21 +35,25 @@ https://github.com/sourcery-ai/sourcery Refactor Python instantly using the power of AI. -It requires the initializationOptions param to be populated as shown below and will respond with the list of ServerCapabilities that it supports. +It requires the init_options param to be populated as shown below and will respond with the list of ServerCapabilities that it supports: -init_options = { - --- The Sourcery token for authenticating the user. - --- This is retrieved from the Sourcery website and must be - --- provided by each user. The extension must provide a - --- configuration option for the user to provide this value. - token = +```lua +require'lspconfig'.sourcery.setup { + init_options = { + --- The Sourcery token for authenticating the user. + --- This is retrieved from the Sourcery website and must be + --- provided by each user. The extension must provide a + --- configuration option for the user to provide this value. + token = , - --- The extension's name and version as defined by the extension. - extension_version = 'vim.lsp' + --- The extension's name and version as defined by the extension. + extension_version = 'vim.lsp', - --- The editor's name and version as defined by the editor. - editor_version = 'vim' + --- The editor's name and version as defined by the editor. + editor_version = 'vim', + }, } +``` ]], }, } -- cgit v1.3