diff options
| author | Copilot <198982749+Copilot@users.noreply.github.com> | 2026-01-30 19:01:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-30 19:01:16 -0500 |
| commit | 125c4ee3fb4bb7086a59e036dca3b1aae0a91bc3 (patch) | |
| tree | c0d941f42e18126208d08fec38ee0e8c17bd16e0 /lsp/ruby_lsp.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-125c4ee3fb4bb7086a59e036dca3b1aae0a91bc3.tar nvim-lspconfig-125c4ee3fb4bb7086a59e036dca3b1aae0a91bc3.tar.gz nvim-lspconfig-125c4ee3fb4bb7086a59e036dca3b1aae0a91bc3.tar.bz2 nvim-lspconfig-125c4ee3fb4bb7086a59e036dca3b1aae0a91bc3.tar.lz nvim-lspconfig-125c4ee3fb4bb7086a59e036dca3b1aae0a91bc3.tar.xz nvim-lspconfig-125c4ee3fb4bb7086a59e036dca3b1aae0a91bc3.tar.zst nvim-lspconfig-125c4ee3fb4bb7086a59e036dca3b1aae0a91bc3.zip | |
fix(ruby_lsp): handle nil config in cmd() for Nvim 0.11.2 #4303
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: justinmk <1359421+justinmk@users.noreply.github.com>
Diffstat (limited to 'lsp/ruby_lsp.lua')
| -rw-r--r-- | lsp/ruby_lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp/ruby_lsp.lua b/lsp/ruby_lsp.lua index da716492..23be43e0 100644 --- a/lsp/ruby_lsp.lua +++ b/lsp/ruby_lsp.lua @@ -18,7 +18,7 @@ return { return vim.lsp.rpc.start( { 'ruby-lsp' }, dispatchers, - config.root_dir and { cwd = config.cmd_cwd or config.root_dir } + config and config.root_dir and { cwd = config.cmd_cwd or config.root_dir } ) end, filetypes = { 'ruby', 'eruby' }, |
