Update README for new LSP config

This commit is contained in:
Wojciech Kozlowski 2021-08-30 18:00:51 +02:00
parent 7d87ccd594
commit 7e860a6163

View File

@ -71,39 +71,16 @@
** C/C++ ** C/C++
Install =ccls= from source Emacs will automatically download ~clangd~ if it isn't installed already.
#+BEGIN_SRC
$ apt install clang libclang-dev
$ git clone --depth=1 --recursive https://github.com/MaskRay/ccls
$ cd ccls
$ cmake -H. -BRelease
$ cmake --build Release
#+END_SRC
Ensure =Release/ccls= is in your =$PATH=.
** Python ** Python
This configuration assumes =python3= and to use the auto-formatting features Emacs will automatically download ~pyright~ if it isn't installed already. Note that this
you need to have =autopep8= installed. requires ~npm~ to be installed.
Install the Python language server using =pip3=
#+BEGIN_SRC
$ pip3 install 'python-language-server[all]'
#+END_SRC
Note that when using Python virtual environments it is best to install the
language server in the environment itself.
** Rust ** Rust
Install RLS using ~rustup~ Install ~rust-analyzer~.
#+BEGIN_SRC
$ rustup component add rls rust-analysis rust-src
#+END_SRC
* Package Management * Package Management