Our great sponsors
-
coc.nvim
Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
rust-analyzer
Discontinued A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer] (by rust-analyzer)
I have been using coc for a few years now as my link to the various language servers out there. It is awesome! However, recently I have been tinkering with the built in LSP in neovim 0.5.0+. At the time of writing this, it is almost stable. I just wanted to share how I got things setup and working for me.
vim-plug
fd
#!/usr/bin/env bash set -e system_type=$(uname -s) if [ "$system_type" = "Darwin" ]; then brew install shellcheck brew install shfmt brew install llvm fd 'clangd$' /usr/local/ --exec ln -s '{}' "$HOME"/.local/bin | : curl -L https://github.com/rust-analyzer/rust-analyzer/releases/download/nightly/rust-analyzer-mac.gz | gunzip -f > "$HOME"/.local/bin/rust-analyzer && chmod +x "$HOME"/.local/bin/rust-analyzer else sudo dnf install -y \ ShellCheck \ shfmt \ clang \ ; curl -L https://github.com/rust-analyzer/rust-analyzer/releases/download/nightly/rust-analyzer-linux.gz | gunzip -f > "$HOME"/.local/bin/rust-analyzer && chmod +x "$HOME"/.local/bin/rust-analyzer fi sudo npm install -g -f \ pyright \ lua-fmt \ prettier \ prettier-plugin-toml \ markdownlint \ diagnostic-languageserver \ typescript typescript-language-server \ dockerfile-language-server-nodejs \ ; pip install --upgrade \ cmake-language-server \ ; GO111MODULE=on go get golang.org/x/tools/gopls@latest
neovim v0.5.0+
golang