Adding rust to LazyVim

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com
featured
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.
www.influxdata.com
featured
  • rust-tools.nvim

    Discontinued Tools for better development in rust using neovim's builtin lsp

  • I apologize in advance OP as this doesn’t answer your question. But if you’re going to use Rust with nvim I highly recommend using rust-tools.

  • nvim-lspconfig

    Quickstart configs for Nvim LSP

  • return { { "simrat39/rust-tools.nvim", dependencies = { "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim", }, opts = { tools = { -- rust-tools options -- how to execute terminal commands -- options right now: termopen / quickfix -- executor = require("rust-tools/executors").termopen, -- callback to execute once rust-analyzer is done initializing the workspace -- The callback receives one parameter indicating the `health` of the server: "ok" | "warning" | "error" on_initialized = nil, -- automatically call RustReloadWorkspace when writing to a Cargo.toml file. reload_workspace_from_cargo_toml = true, -- These apply to the default RustSetInlayHints command inlay_hints = { -- automatically set inlay hints (type hints) -- default: true auto = true, -- Only show inlay hints for the current line only_current_line = false, -- whether to show parameter hints with the inlay hints or not -- default: true show_parameter_hints = true, -- prefix for parameter hints -- default: "<-" parameter_hints_prefix = "<- ", -- prefix for all the other hints (type, chaining) -- default: "=>" other_hints_prefix = "=> ", -- whether to align to the lenght of the longest line in the file max_len_align = false, -- padding from the left if max_len_align is true max_len_align_padding = 1, -- whether to align to the extreme right or not right_align = false, -- padding from the right if right_align is true right_align_padding = 7, -- The color of the hints highlight = "Comment", }, -- options same as lsp hover / vim.lsp.util.open_floating_preview() hover_actions = { -- the border that is used for the hover window -- see vim.api.nvim_open_win() border = { { "╭", "FloatBorder" }, { "─", "FloatBorder" }, { "╮", "FloatBorder" }, { "│", "FloatBorder" }, { "╯", "FloatBorder" }, { "─", "FloatBorder" }, { "╰", "FloatBorder" }, { "│", "FloatBorder" }, }, -- whether the hover action window gets automatically focused -- default: false auto_focus = false, }, -- all the opts to send to nvim-lspconfig -- these override the defaults set by rust-tools.nvim -- see https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#rust_analyzer server = { -- standalone file support -- setting it to false may improve startup time standalone = true, settings = { ["rust-analyzer"] = { imports = { granularity = { group = "module", }, prefix = "self", }, cargo = { buildScripts = { enable = true, }, }, procMacro = { enable = true, }, checkOnSave = { command = "clippy", }, }, }, }, -- rust-analyer options -- debugging stuff -- dap = { }, }, config = function(_, opts) require("rust-tools").setup(opts) end, }, }, }

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • LazyVim

    Neovim config for the lazy

  • Here's a good reference to work off of: https://github.com/LazyVim/LazyVim/pull/24

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Neovide – a simple, no-nonsense, cross-platform GUI for Neovim

    17 projects | news.ycombinator.com | 31 Jan 2024
  • As someone new to neovim, should I even bother with LSP?

    3 projects | /r/neovim | 12 Jul 2023
  • What's your current Vim+Rust setup?

    9 projects | /r/rust | 15 May 2023
  • NVim, Rust, LSP (rust-analyzer + rust-tools) issue

    2 projects | /r/neovim | 16 Apr 2023
  • Best Rust editor?

    6 projects | /r/rust | 9 Apr 2023