From 9849294865c7da8ad481496ec37a935228efa940 Mon Sep 17 00:00:00 2001 From: William Findlay Date: Wed, 27 Oct 2021 19:25:58 -0400 Subject: [PATCH] lsp: fix rust-analyzer support on neovim and vscode The project structure was messing with rust-analyzer's ability to correctly find the Cargo.toml for the {{project-name}}-ebpf crate. This patch fixes it by manually defining the project structure in both vscode and neovim. Signed-off-by: William Findlay --- .vim/coc-settings.json | 3 +++ .vscode/settings.json | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .vim/coc-settings.json create mode 100644 .vscode/settings.json diff --git a/.vim/coc-settings.json b/.vim/coc-settings.json new file mode 100644 index 0000000..23b3449 --- /dev/null +++ b/.vim/coc-settings.json @@ -0,0 +1,3 @@ +{ + "rust-analyzer.linkedProjects": ["Cargo.toml", "{{crate_name}}-ebpf/Cargo.toml"] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..23b3449 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "rust-analyzer.linkedProjects": ["Cargo.toml", "{{crate_name}}-ebpf/Cargo.toml"] +}