mattn / vim-lsp-settings

Auto configurations for Language Server for vim-lsp
MIT License
1.26k stars 225 forks source link

The steep language server started when Steepfile not exists #756

Open elct9620 opened 3 weeks ago

elct9620 commented 3 weeks ago

My Vim has these settings to enable the ruby-lsp, steep, and rubocop language server

let g:lsp_settings_filetype_ruby = ['ruby-lsp', 'rubocop', 'steep']

However, when I installed steep with gem install steep another project didn't have Steepfile still load the steep language server.

I think this line will check for it but seems not to work: https://github.com/mattn/vim-lsp-settings/blob/2cad696eb76755ff00415d97ce4bd5c82d6e2fb3/settings/steep.vim#L8

If I removed the g:lsp_settings_filetype_ruby then the steep not work on the project has Steepfile

P.S. The rubocop or rubocop-lsp-mode both do not run the rubocop language server for now

mattn commented 3 weeks ago

make sense. I'll look this into it in later.

elct9620 commented 3 weeks ago

Thanks.

I test another use case for it.

  1. gem uninstall steep to ensure no steep installed
  2. Run :LspInstallServer steep to install into ~/.local
  3. Run vim with the Steepfile project but the :LspStatus shows steep: exited

The similar issues occurred with Rubocop:

If :LspInstallServer rubocop-lsp-mode is not configured (not exists in ~/.local) the rubocop-lsp-mode never loaded even the Gemfile included the rubocop gem.