Skip to content

Commit bd6c80e

Browse files
elct9620mattn
authored andcommitted
fix: do not enable steep if Steepfile is not exist to resolve #756
1 parent 20b8712 commit bd6c80e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

settings/steep.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ augroup vim_lsp_settings_steep
55
\ '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', []))},
66
\ 'root_uri': {server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'Steepfile'))},
77
\ 'initialization_options': lsp_settings#get('steep', 'initialization_options', {'diagnostics': 'true'}),
8-
\ 'allowlist': lsp_settings#get('steep', 'allowlist', {x->empty(lsp_settings#root_path(['Steepfile'])) ? [] : ['ruby']}),
8+
\ 'allowlist': lsp_settings#get('steep', 'allowlist', {x->empty(lsp#utils#find_nearest_parent_file(lsp#utils#get_buffer_path(), 'Steepfile')) ? [] : ['ruby']}),
99
\ 'blocklist': lsp_settings#get('steep', 'blocklist', []),
1010
\ 'config': lsp_settings#get('steep', 'config', lsp_settings#server_config('steep')),
1111
\ 'workspace_config': lsp_settings#get('steep', 'workspace_config', {}),

0 commit comments

Comments
 (0)