Skip to content

Commit

Permalink
docs: lsp integration
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-levan committed Jul 9, 2024
1 parent 6aaa489 commit a7fd52a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ you can pass them with [`--per_file_copt`][per_file_copt] like so:
bazel build --per_file_copt='pkg/.*@-DMACRO'
```

## LSP Integration

```console
bazel run //bazel:refresh_compile_commands
```

Running this command will generate a `compile_commands.json` file in the root
of the repository, which `clangd` (or other language server processors) will
use automatically to provide modern editor features like syntax highlighting,
go-to definitions, call hierarchies, symbol manipulation, etc.

## Test Commands

You can build and run unit tests only on native builds. If you have a native
Expand Down

0 comments on commit a7fd52a

Please sign in to comment.