aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/ruby_lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/ruby_lsp.lua')
-rw-r--r--lsp/ruby_lsp.lua2
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' },