/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
utils/nvim/carbon.lua
28 строк
739 B
Chandler Carruth
Replace #4505 with a different set of workarounds (#4527)
20 дек 2024, 03:33
Не верифицирован
20 дек 2024, 03:33
13502b7
Код
Авторство
О чём код?
-- 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 vim.filetype.add({ extension = { carbon = 'carbon', }, }) vim.treesitter.language.add("carbon") -- LSP local lsp = require 'lspconfig' local configs = require 'lspconfig.configs' local util = require 'lspconfig.util' -- Check if the config is already defined (useful when reloading this file) if not configs.carbon then configs.carbon = { default_config = { cmd = { "./bazel-bin/toolchain/carbon language-server" }, filetypes = { "carbon" }, root_dir = util.find_git_ancestor, } } end lsp.carbon.setup {}