diff options
| author | William Boman <william@redwill.se> | 2022-06-06 13:51:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-06 04:51:49 -0700 |
| commit | 1f910f6dd3e2f7517e0e7dd0fa0081cc31d288b9 (patch) | |
| tree | 4e05749a73a564efed1814bfaf84e2fb607694e2 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-1f910f6dd3e2f7517e0e7dd0fa0081cc31d288b9.tar nvim-lspconfig-1f910f6dd3e2f7517e0e7dd0fa0081cc31d288b9.tar.gz nvim-lspconfig-1f910f6dd3e2f7517e0e7dd0fa0081cc31d288b9.tar.bz2 nvim-lspconfig-1f910f6dd3e2f7517e0e7dd0fa0081cc31d288b9.tar.lz nvim-lspconfig-1f910f6dd3e2f7517e0e7dd0fa0081cc31d288b9.tar.xz nvim-lspconfig-1f910f6dd3e2f7517e0e7dd0fa0081cc31d288b9.tar.zst nvim-lspconfig-1f910f6dd3e2f7517e0e7dd0fa0081cc31d288b9.zip | |
feat: add visualforce_ls (#1945)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/visualforce_ls.lua | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/visualforce_ls.lua b/lua/lspconfig/server_configurations/visualforce_ls.lua new file mode 100644 index 00000000..c48bcaa2 --- /dev/null +++ b/lua/lspconfig/server_configurations/visualforce_ls.lua @@ -0,0 +1,38 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + filetypes = { 'visualforce' }, + root_dir = util.root_pattern 'sfdx-project.json', + init_options = { + embeddedLanguages = { + css = true, + javascript = true, + }, + }, + }, + docs = { + description = [[ +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' + } +} +``` +]], + default_config = { + root_dir = [[root_pattern('sfdx-project.json')]], + }, + }, +} |
