commit | a2f31daf1317d79fd13f142ad2934c406d6d3d4e | [log] [tgz] |
---|---|---|
author | Solly Ross <sollyross@google.com> | Tue Oct 11 13:36:40 2022 -0700 |
committer | Solly Ross <sollyross@google.com> | Fri Oct 21 17:10:16 2022 -0700 |
tree | 4529136cde8a0bcdc030b6299b806cdd86e2a7c8 | |
parent | 52705791cfc6ee1b28601cd5c43c025feee8a9e5 [diff] |
[setup] Modify boilerplate Proper owners, readme, etc Change-Id: I68d535d90b546746541a8c017756d8e9791bb985
LSP server for Fuchsia-specific languages (FIDL, CML).
See the individual subdirectories for more information.
All crates here use a normal Rust build process. The LSP server itself is the default project for this workspace, so you can simply run cargo build --release
from the root of the repository and get a built LSP in /target/release
.
See /lsp
for more details, but the TL;DR is:
If using VS Code, grab the Fuchsia extension, which comes with a prebuilt copy, or can be configured to use a custom copy in the extension settings
Otherwise, follow the appropriate editor configuration for adding language servers to your editor. For example, for neovim with nvim-lspconfig:
require('lspconfig.configs').fuchsialsp = { default_config = { name = 'Fuchsia Language Server', cmd = {'/path/to/your/built/lsp'}, filetypes = {'fidl', 'cml'}, -- this'll be changing a bit in the future to be clearer root_dir = require('lspconfig').util.find_git_ancestor, } } require('lspconfig').fuchsialsp.setup { -- your setup here }