Skip to content

A Rails Engine that gives Language Server support to Rails apps

License

Notifications You must be signed in to change notification settings

tenderlove/refreshing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Refreshing

This is a Rails engine that adds language server support to Rails applications. It is a very very extremely POC code, so please don't ask for any assistance!!

I have it configured in Vim like this:

if filereadable(".livecode")
  au User lsp_setup
        \ call lsp#register_server({
        \      'name': 'cool-lsp',
        \      'cmd': ["nc", "localhost", "2000"],
        \      'allowlist': ['ruby', 'eruby'],
        \ })
endif

The target app just needs to mount the engine like so:

Rails.application.routes.draw do
  mount Refreshing::Engine => "/refreshing"
end

AFAIK this only works with Falcon in threaded mode:

bundle exec falcon --threaded

About

A Rails Engine that gives Language Server support to Rails apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published