From 04b631eb7c58d24eb616377e2b115ba793e968bb Mon Sep 17 00:00:00 2001 From: Xiaobo Liu Date: Thu, 3 Oct 2024 16:35:18 +0800 Subject: [PATCH] ebpf: consolidate rust-analyzer settings Signed-off-by: Xiaobo Liu --- .cargo/rust-analyzer.toml | 2 ++ .dir-locals.el | 1 - .vim/coc-settings.json | 3 --- .vscode/settings.json | 3 --- 4 files changed, 2 insertions(+), 7 deletions(-) create mode 100644 .cargo/rust-analyzer.toml delete mode 100644 .dir-locals.el delete mode 100644 .vim/coc-settings.json delete mode 100644 .vscode/settings.json diff --git a/.cargo/rust-analyzer.toml b/.cargo/rust-analyzer.toml new file mode 100644 index 0000000..deae97e --- /dev/null +++ b/.cargo/rust-analyzer.toml @@ -0,0 +1,2 @@ +[rust-analyzer] +linkedProjects = ["Cargo.toml", "{{project-name}}-ebpf/Cargo.toml"] diff --git a/.dir-locals.el b/.dir-locals.el deleted file mode 100644 index d33fcae..0000000 --- a/.dir-locals.el +++ /dev/null @@ -1 +0,0 @@ -((prog-mode . ((lsp-rust-analyzer-linked-projects . ["Cargo.toml" "{{project-name}}-ebpf/Cargo.toml"])))) diff --git a/.vim/coc-settings.json b/.vim/coc-settings.json deleted file mode 100644 index 6a1ec7d..0000000 --- a/.vim/coc-settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rust-analyzer.linkedProjects": ["Cargo.toml", "{{project-name}}-ebpf/Cargo.toml"] -} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 6a1ec7d..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rust-analyzer.linkedProjects": ["Cargo.toml", "{{project-name}}-ebpf/Cargo.toml"] -}