aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/server_configurations/sourcery.lua
diff options
context:
space:
mode:
authorhafeoz <hafeoz@kolabnow.com>2022-11-26 00:57:25 +0000
committerGitHub <noreply@github.com>2022-11-26 08:57:25 +0800
commitbc6433d7e585d64817edb44049700ea2c002f045 (patch)
tree3fa093168fe0cc4b13769f46805f65bc0165bc45 /lua/lspconfig/server_configurations/sourcery.lua
parentfeat: add ntt language server support (#2256) (diff)
downloadnvim-lspconfig-bc6433d7e585d64817edb44049700ea2c002f045.tar
nvim-lspconfig-bc6433d7e585d64817edb44049700ea2c002f045.tar.gz
nvim-lspconfig-bc6433d7e585d64817edb44049700ea2c002f045.tar.bz2
nvim-lspconfig-bc6433d7e585d64817edb44049700ea2c002f045.tar.lz
nvim-lspconfig-bc6433d7e585d64817edb44049700ea2c002f045.tar.xz
nvim-lspconfig-bc6433d7e585d64817edb44049700ea2c002f045.tar.zst
nvim-lspconfig-bc6433d7e585d64817edb44049700ea2c002f045.zip
docs(sourcery): put setup inside code block (#2258)
Diffstat (limited to 'lua/lspconfig/server_configurations/sourcery.lua')
-rw-r--r--lua/lspconfig/server_configurations/sourcery.lua26
1 files changed, 15 insertions, 11 deletions
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 = <YOUR_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 = <YOUR_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',
+ },
}
+```
]],
},
}