diff options
Add racket_langserver.
This adds in a basic configuration for the Racket langauage server.
https://github.com/jeapostrophe/racket-langserver
Diffstat (limited to 'lua/lspconfig/racket_langserver.lua')
| -rw-r--r-- | lua/lspconfig/racket_langserver.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lua/lspconfig/racket_langserver.lua b/lua/lspconfig/racket_langserver.lua new file mode 100644 index 00000000..00c68471 --- /dev/null +++ b/lua/lspconfig/racket_langserver.lua @@ -0,0 +1,28 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +local root_files = { + '.git', +} + +configs.racket_langserver = { + default_config = { + cmd = {"racket", "--lib", "racket-langserver"}; + filetypes = {"racket", "scheme"}; + root_dir = function(filename) + return util.root_pattern(unpack(root_files))(filename) or + util.path.dirnmae(filename) + end + }; + docs = { + description = [[ +[https://github.com/jeapostrophe/racket-langserver](https://github.com/jeapostrophe/racket-langserver) + +The Racket language server. This project seeks to use +[DrRacket](https://github.com/racket/drracket)'s public API to provide +functionality that mimics DrRacket's code tools as closely as possible. + +Install via `raco`: `raco pkg install racket-langserver` +]]; + }; +}; |
