Skip to content

Commit

Permalink
docs: lsp integration (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
belisarius222 authored Jul 9, 2024
2 parents 6aaa489 + a7fd52a commit 48b73dc
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 48b73dc

Please sign in to comment.