From ff05a85d9b8beb4c358d7bfd3953f097fbf581b4 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 6 Jun 2022 11:52:06 +0000 Subject: docs: update server_configurations.md skip-checks: true --- doc/server_configurations.md | 49 +++++++++++++++++++++++++++++++++++++++++++ doc/server_configurations.txt | 49 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3-70-g09d2