Skip to content

Commit

Permalink
fix: do not enable steep if Steepfile is not exist to resolve #756
Browse files Browse the repository at this point in the history
  • Loading branch information
elct9620 authored and mattn committed Jan 16, 2025
1 parent 20b8712 commit bd6c80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings/steep.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ augroup vim_lsp_settings_steep
\ 'cmd': {server_info->lsp_settings#get('steep', 'cmd', [lsp_settings#exec_path('steep'), 'langserver', printf('--steepfile=%s', lsp#utils#find_nearest_parent_file(lsp#utils#get_buffer_path(), 'Steepfile'))]+lsp_settings#get('steep', 'args', []))},
\ 'root_uri': {server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'Steepfile'))},
\ 'initialization_options': lsp_settings#get('steep', 'initialization_options', {'diagnostics': 'true'}),
\ 'allowlist': lsp_settings#get('steep', 'allowlist', {x->empty(lsp_settings#root_path(['Steepfile'])) ? [] : ['ruby']}),
\ 'allowlist': lsp_settings#get('steep', 'allowlist', {x->empty(lsp#utils#find_nearest_parent_file(lsp#utils#get_buffer_path(), 'Steepfile')) ? [] : ['ruby']}),
\ 'blocklist': lsp_settings#get('steep', 'blocklist', []),
\ 'config': lsp_settings#get('steep', 'config', lsp_settings#server_config('steep')),
\ 'workspace_config': lsp_settings#get('steep', 'workspace_config', {}),
Expand Down

0 comments on commit bd6c80e

Please sign in to comment.