diff options
| author | github-actions <github-actions@github.com> | 2022-06-06 11:52:06 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2022-06-06 11:52:06 +0000 |
| commit | ff05a85d9b8beb4c358d7bfd3953f097fbf581b4 (patch) | |
| tree | 4c280410adfea408a893182ffcca1a39907b4606 | |
| parent | feat: add visualforce_ls (#1945) (diff) | |
| download | nvim-lspconfig-ff05a85d9b8beb4c358d7bfd3953f097fbf581b4.tar nvim-lspconfig-ff05a85d9b8beb4c358d7bfd3953f097fbf581b4.tar.gz nvim-lspconfig-ff05a85d9b8beb4c358d7bfd3953f097fbf581b4.tar.bz2 nvim-lspconfig-ff05a85d9b8beb4c358d7bfd3953f097fbf581b4.tar.lz nvim-lspconfig-ff05a85d9b8beb4c358d7bfd3953f097fbf581b4.tar.xz nvim-lspconfig-ff05a85d9b8beb4c358d7bfd3953f097fbf581b4.tar.zst nvim-lspconfig-ff05a85d9b8beb4c358d7bfd3953f097fbf581b4.zip | |
docs: update server_configurations.md
skip-checks: true
| -rw-r--r-- | doc/server_configurations.md | 49 | ||||
| -rw-r--r-- | doc/server_configurations.txt | 49 |
2 files changed, 98 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 2938fd65..5e52ceca 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -149,6 +149,7 @@ that config. This file is accessible in neovim via `:help lspconfig-server-confi - [vdmj](#vdmj) - [verible](#verible) - [vimls](#vimls) +- [visualforce_ls](#visualforce_ls) - [vls](#vls) - [volar](#volar) - [vuels](#vuels) @@ -6331,6 +6332,54 @@ require'lspconfig'.vimls.setup{} ``` +## visualforce_ls + +https://github.com/forcedotcom/salesforcedx-vscode + +Language server for Visualforce. + +For manual installation, download the .vsix archive file from the +[forcedotcom/salesforcedx-vscode](https://github.com/forcedotcom/salesforcedx-vscode) +GitHub releases. Then, configure `cmd` to run the Node script at the unpacked location: + +```lua +require'lspconfig'.visualforce_ls.setup { + cmd = { + 'node', + '/path/to/unpacked/archive/extension/node_modules/@salesforce/salesforcedx-visualforce-language-server/out/src/visualforceServer.js', + '--stdio' + } +} +``` + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.visualforce_ls.setup{} +``` + + +**Default values:** + - `filetypes` : + ```lua + { "visualforce" } + ``` + - `init_options` : + ```lua + { + embeddedLanguages = { + css = true, + javascript = true + } + } + ``` + - `root_dir` : + ```lua + root_pattern('sfdx-project.json') + ``` + + ## vls https://github.com/vlang/vls diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index 2938fd65..5e52ceca 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -149,6 +149,7 @@ that config. This file is accessible in neovim via `:help lspconfig-server-confi - [vdmj](#vdmj) - [verible](#verible) - [vimls](#vimls) +- [visualforce_ls](#visualforce_ls) - [vls](#vls) - [volar](#volar) - [vuels](#vuels) @@ -6331,6 +6332,54 @@ require'lspconfig'.vimls.setup{} ``` +## visualforce_ls + +https://github.com/forcedotcom/salesforcedx-vscode + +Language server for Visualforce. + +For manual installation, download the .vsix archive file from the +[forcedotcom/salesforcedx-vscode](https://github.com/forcedotcom/salesforcedx-vscode) +GitHub releases. Then, configure `cmd` to run the Node script at the unpacked location: + +```lua +require'lspconfig'.visualforce_ls.setup { + cmd = { + 'node', + '/path/to/unpacked/archive/extension/node_modules/@salesforce/salesforcedx-visualforce-language-server/out/src/visualforceServer.js', + '--stdio' + } +} +``` + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.visualforce_ls.setup{} +``` + + +**Default values:** + - `filetypes` : + ```lua + { "visualforce" } + ``` + - `init_options` : + ```lua + { + embeddedLanguages = { + css = true, + javascript = true + } + } + ``` + - `root_dir` : + ```lua + root_pattern('sfdx-project.json') + ``` + + ## vls https://github.com/vlang/vls |
