Last active
August 25, 2018 21:48
-
-
Save randy3k/dbc42df4fdff110e3e4b5a94240cadea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from LSP.plugin.core.handlers import LanguageHandler | |
from LSP.plugin.core.settings import ClientConfig | |
class LspRLangPlugin(LanguageHandler): | |
name = "rlang" | |
def __init__(self): | |
self._config = ClientConfig( | |
name=self.name, | |
binary_args=[ | |
"R", | |
"--quiet", | |
"--slave", | |
"-e", | |
"languageserver::run()" | |
], | |
tcp_port=None, | |
scopes=["source.r", "text.html.markdown.rmarkdown"], | |
syntaxes=[ | |
"Packages/R/R.sublime-syntax", | |
"Packages/R-IDE/R Markdown.sublime-syntax" | |
], | |
languageId='r', | |
enabled=True, | |
init_options=dict(), | |
settings=dict(), | |
env={} | |
) | |
@property | |
def config(self): | |
return self._config | |
def on_start(self, window): | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment