V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Kaleidopink
V2EX  ›  Rust

请问一下 neovim 中 rust-analyzer 的单文件模式怎么配置?

  •  
  •   Kaleidopink · 27 天前 · 601 次点击

    目前主要在 neovim 上使用 nvim-lspconfig 这个插件进行 LSP 管理,但是写 Rust 单文件完全没有补全和诊断,想问一下有没有尝试过的老哥知道怎么配置?

    之所以弄这个是有时候写一个测试程序或者 leetcode 不想每次都创建一个新项目。

    3 条回复    2024-08-20 10:30:12 +08:00
    yelog
        1
    yelog  
       27 天前
    rust-analyzer 的问题, 使用这个插件试试 https://github.com/mrcjkb/rustaceanvim
    Kaleidopink
        2
    Kaleidopink  
    OP
       27 天前
    @yelog 这个里面好像没有提到怎么配置单文件模式啊
    yelog
        3
    yelog  
       27 天前
    添加了这个插件, 就自动支持单文件了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   941 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 19:36 · PVG 03:36 · LAX 12:36 · JFK 15:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.