Nvim: sync with coder setup
This commit is contained in:
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user