Nvim: sync with coder setup

This commit is contained in:
Robert Kmieć
2026-03-04 10:32:14 +01:00
parent 09bb156e47
commit 1761d659c7
9 changed files with 337 additions and 25 deletions

View File

@@ -130,7 +130,7 @@ return {
vim.lsp.config('clangd_extensions', {
cmd = {
"/workspace/WayveCode/bzl-build/WayveCode/external/llvm_toolchain_llvm/bin/clangd",
"/workspace/WayveCode/tools/clangd",
"--background-index",
"-j=32",
"--header-insertion=never"},
@@ -186,6 +186,21 @@ return {
settings = {},
})
vim.lsp.config('bzl', {
cmd = { 'bzl', 'lsp', 'serve' },
filetypes = { 'bzl' },
-- https://docs.bazel.build/versions/5.4.1/build-ref.html#workspace
root_markers = { 'WORKSPACE', 'WORKSPACE.bazel' },
})
vim.lsp.config('rust_analyzer', {
cmd = { 'rust_analyzer'},
filetypes = { "rust" },
single_file_support = true,
settings = {},
})
vim.lsp.enable('rust_analyzer')
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
local servers = { "cmake", "rust_analyzer", "bashls", "marksman", "bzl" }