diff options
| author | Charlie Marsh <charlie.r.marsh@gmail.com> | 2022-12-27 11:03:27 -0500 |
|---|---|---|
| committer | Peter Lithammer <peter.lithammer@gmail.com> | 2022-12-29 16:20:23 +0100 |
| commit | be05c712cbd2e0f1eb154ee2a37f5efbed9119df (patch) | |
| tree | 1c3c1791d877b2002ccd9cdea83b54f0c114a04e | |
| parent | fix: not register workspace when in single file mode (#2367) (diff) | |
| download | nvim-lspconfig-be05c712cbd2e0f1eb154ee2a37f5efbed9119df.tar nvim-lspconfig-be05c712cbd2e0f1eb154ee2a37f5efbed9119df.tar.gz nvim-lspconfig-be05c712cbd2e0f1eb154ee2a37f5efbed9119df.tar.bz2 nvim-lspconfig-be05c712cbd2e0f1eb154ee2a37f5efbed9119df.tar.lz nvim-lspconfig-be05c712cbd2e0f1eb154ee2a37f5efbed9119df.tar.xz nvim-lspconfig-be05c712cbd2e0f1eb154ee2a37f5efbed9119df.tar.zst nvim-lspconfig-be05c712cbd2e0f1eb154ee2a37f5efbed9119df.zip | |
fix(ruff-lsp): update docs to reflect init_options
| -rw-r--r-- | lua/lspconfig/server_configurations/ruff_lsp.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/lspconfig/server_configurations/ruff_lsp.lua b/lua/lspconfig/server_configurations/ruff_lsp.lua index a9e685a6..46b4ca04 100644 --- a/lua/lspconfig/server_configurations/ruff_lsp.lua +++ b/lua/lspconfig/server_configurations/ruff_lsp.lua @@ -2,6 +2,7 @@ local util = require 'lspconfig.util' local root_files = { 'pyproject.toml', + 'ruff.toml', } return { @@ -26,8 +27,8 @@ Extra CLI arguments for `ruff` can be provided via ```lua require'lspconfig'.ruff_lsp.setup{ - settings = { - ruff_lsp = { + init_options = { + settings = { -- Any extra CLI arguments for `ruff` go here. args = {}, } @@ -36,6 +37,6 @@ require'lspconfig'.ruff_lsp.setup{ ``` ]], - root_dir = [[root_pattern("pyproject.toml", ".git")]], + root_dir = [[root_pattern("pyproject.toml", "ruff.toml", ".git")]], }, } |
