Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Commit

Permalink
WIP: adding information about default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries committed Nov 24, 2016
1 parent 97ee0c1 commit 5af6e55
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
node_modules/*
*tags*
2 changes: 1 addition & 1 deletion autoload/langserver/mappings.vim
Expand Up @@ -8,6 +8,6 @@ function! langserver#mappings#default(opts) abort
nnoremap <silent> <Plug>(langserver_hover_request) :call langserver#hover#request()<CR>
" Reference mappings
nnoremap <silent> <Plug>(langserver_textdocument_references) :call langserver#references#request()<CR>
nnoremap <silent> <Plug>(langserver_textdocument_references_request) :call langserver#references#request()<CR>
endfunction

9 changes: 9 additions & 0 deletions doc/langserver.txt
Expand Up @@ -34,6 +34,15 @@ Define a dictionary like this in your vimrc. >
\ },
\ }
===== IN PROGRESS ===== ~

In general, it is recommended that you name the server with the convention of
{repository_host}/{repository_name}. There will be configuration defaults set
for known language servers to try and ease the startup difficulty for users.

==========~

TODO: Mappings

Plug Mappings:
Expand Down
63 changes: 63 additions & 0 deletions preconfigured/freebroccolo_ocaml-language-server.json
@@ -0,0 +1,63 @@
{
"properties": {
"reason.codelens.unicode": {
"type": "boolean",
"default": true,
"description": "Enable the use of unicode symbols in codelens."
},
"reason.server.languages": {
"type": "array",
"items": {
"enum": [
"reason"
]
},
"default": [
"reason"
],
"maxItems": 1,
"uniqueItems": true,
"description": "The list of languages enable support for in the language server."
},
"reason.debounce.linter": {
"type": "integer",
"default": 500,
"description": "How long to idle (in milliseconds) after keypresses before refreshing linter diagnostics. Smaller values refresh diagnostics more quickly."
},
"reason.path.ocamlfind": {
"type": "string",
"default": "ocamlfind",
"description": "The path to the `ocamlfind` binary."
},
"reason.path.ocamlmerlin": {
"type": "string",
"default": "ocamlmerlin",
"description": "The path to the `ocamlmerlin` binary."
},
"reason.path.opam": {
"type": "string",
"default": "opam",
"description": "The path to the `opam` binary."
},
"reason.path.rebuild": {
"type": "string",
"default": "rebuild",
"description": "The path to the `rebuild` binary."
},
"reason.path.refmt": {
"type": "string",
"default": "refmt",
"description": "The path to the `refmt` binary."
},
"reason.path.refmterr": {
"type": "string",
"default": "refmterr",
"description": "The path to the `refmterr` binary."
},
"reason.path.rtop": {
"type": "string",
"default": "rtop",
"description": "The path to the `rtop` binary."
}
}
}

0 comments on commit 5af6e55

Please sign in to comment.