mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 16:05: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>
Neovim plugin for Carbon
Treesitter based syntax highlighting and language server client for Neovim.
This requires neovim >= 0.11.
- Run
bazel build //toolchainin project root. - Run
utils/nvim/setup.sh. - Start nvim in carbon-lang root folder and open a carbon file.
- View document symbols. If you have telescope.nvim installed, you can use
:Telescope lsp_document_symbols