rust 개발환경 in vim

Cute_Security15·2024년 3월 10일
0

설정

목록 보기
16/22

문제상황

rust 개발환경 추천은 주로 neovim 이나 vscode 가 검색된다.

  • 당장은 불필요한 empirical knowledge 비용이 들어간다.

목적

개발환경 변경없이 rust 개발환경을 vim 에 구성한다

사용한 플러그인

rust-analyzer, vim-lsp
https://rust-analyzer.github.io/
https://github.com/prabirshrestha/vim-lsp

  • rust-analyzer 서버에서 준 정보를 vim-lsp 에서 받아 확인하는 방식
  • goto definition 기능과 search symbol 기능이 기본적으로 있고, 그외에 다른 기능들도 많이 있는걸 확인

vimrc

https://gitlab.com/feather973/simple_vimrc

사용예시

https://asciinema.org/a/3o2tnUfZL7x0bMtAapLyoWyFK

profile
관심분야 : Filesystem, Data structure, user/kernel IPC

2개의 댓글

comment-user-thumbnail
2024년 3월 10일

회사 내에서 개발할때 외부 crate doc 을 미리 다운로드 받아두고 쓰고 싶을때도 있다.
이 경우 cargo add 를 통해 해결할수 있다.

cargo add serde
cargo doc
cd target/doc

답글 달기
comment-user-thumbnail
2024년 3월 10일

rust 기본 document 다운로드 위치 : rustc --print sysroot

답글 달기