mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 07:21:04 +01:00
As I was starting to try to play around with carbon, I wanted nvim integration. Unfortunately, a lot of the code in the integration had bitrotted, but not unbearably so, so I updated it 😄 It works now! Syntax highlighting and the LSP work out of the box with nvim 0.12 (and should also work on nvim 0.11) Hopefully all good that I did All The Commits, I come from the school of "every commit should do one thing" Closes #7821 --------- Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
18 lines
592 B
Markdown
18 lines
592 B
Markdown
<!--
|
|
Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
Exceptions. See /LICENSE for license information.
|
|
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
-->
|
|
|
|
# Neovim plugin for Carbon
|
|
|
|
Treesitter based syntax highlighting and language server client for Neovim.
|
|
|
|
This requires neovim >= 0.11.
|
|
|
|
1. Run `bazel build //toolchain` in project root.
|
|
2. Run `utils/nvim/setup.sh`.
|
|
3. Start nvim in carbon-lang root folder and open a carbon file.
|
|
4. View document symbols. If you have telescope.nvim installed, you can use
|
|
`:Telescope lsp_document_symbols`
|