#cargo-toml #toml #cargo #lsp #language-server

bin+lib cargotomllsp

A LSP server for Cargo.toml files

2 releases

0.1.1 Jan 28, 2024
0.1.0 Jan 28, 2024

#2617 in Development tools

MIT license

17KB
387 lines

cargotomllsp 🔧

This LSP server will spare you from going over to crates.io/docs.rs/... to find whatever package version is the latest one. Inspired by some videos of people having this functionality in vsc*de. Can't let those pesky vsc*de soyboy developers get away with having more features (support for vsc*de will maybe be added in the future)...

Supported features 🧰

Currently, server is capable of supplying:

  • latest version of the crate
  • feature names

Usage 🛠️

In the future this will maybe be available through Mason. For now, you have to have Rust installed, and then you have to install by running:

$ cargo install cargotomllsp

Neovim ⚡

WIP. But currently if you want a quick way to attach it to a buffer, then run the code from attach_lsp.lua in a buffer you want to attach to. A quick way to run lua code in neovim is to use the following command:

luafile <path-to-file>

Logging

Server should be outputting logs to $HOME/.local/state/cargotomllsp.log.

Dependencies

~13–29MB
~467K SLoC