diff options
| author | David Ward <errantepiphany@users.noreply.github.com> | 2023-01-21 22:24:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-22 11:24:00 +0800 |
| commit | fa63a05805966c86526b0a091d64b096c014787c (patch) | |
| tree | 81f64aad7896ac309580fd3328f56598d2cddd44 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-fa63a05805966c86526b0a091d64b096c014787c.tar nvim-lspconfig-fa63a05805966c86526b0a091d64b096c014787c.tar.gz nvim-lspconfig-fa63a05805966c86526b0a091d64b096c014787c.tar.bz2 nvim-lspconfig-fa63a05805966c86526b0a091d64b096c014787c.tar.lz nvim-lspconfig-fa63a05805966c86526b0a091d64b096c014787c.tar.xz nvim-lspconfig-fa63a05805966c86526b0a091d64b096c014787c.tar.zst nvim-lspconfig-fa63a05805966c86526b0a091d64b096c014787c.zip | |
docs(drools-lsp): minor documentation fix and improvements (#2415)
Signed-off-by: David Ward <dward@redhat.com>
Signed-off-by: David Ward <dward@redhat.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/drools_lsp.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/lspconfig/server_configurations/drools_lsp.lua b/lua/lspconfig/server_configurations/drools_lsp.lua index 28290a87..75720a42 100644 --- a/lua/lspconfig/server_configurations/drools_lsp.lua +++ b/lua/lspconfig/server_configurations/drools_lsp.lua @@ -44,7 +44,7 @@ return { end, }, docs = { - description = [[ + description = [=[ https://github.com/kiegroup/drools-lsp Language server for the [Drools Rule Language (DRL)](https://docs.drools.org/latest/drools-docs/docs-website/drools/language-reference/#con-drl_drl-rules). @@ -66,16 +66,16 @@ require('lspconfig').drools_lsp.setup { -- Option 3) Specify the java bin and/or java opts in addition to the jar path: require('lspconfig').drools_lsp.setup { drools = { - java { bin = '/path/to/java', opts = { '-Xmx100m' } }, + java = { bin = '/path/to/java', opts = { '-Xmx100m' } }, jar = '/path/to/drools-lsp-server-jar-with-dependencies.jar', }, } ``` -It is also recommended to set up automatic filetype detection for drools (`*.drl`) files, for example: -```vim -autocmd BufRead,BufNewFile *.drl set filetype=drools +Neovim does not yet have automatic detection for the `drools` filetype, but it can be added with: +```lua +vim.cmd [[ autocmd BufNewFile,BufRead *.drl set filetype=drools ]] ``` -]], +]=], }, } |
