12

让你的NeoVim Builtin LSP美轮美奂

 3 years ago
source link: http://xfyuan.github.io/2021/03/a-awesome-neovim-lsp-plugin/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

让你的NeoVim Builtin LSP美轮美奂

Written by Mr.Z on 11 Mar 2021

在配置 NeoVim Builtin LSP 的过程中,发现它自带的原生 UI 界面实在简陋了些。虽然功能用起来没问题,但远远够不上赏心悦目的程度。这对于像我这样的“视觉动物”来说,实在是坚决不能容忍的“大罪”了。

经过一番搜寻,终于找到一个很不错的 NeoVim Builtin LSP 增强插件:lspsaga.nvim

它对自己的介绍是:“A light-weight lsp plugin based on neovim built-in lsp with highly a performant UI.”,可见其完全聚焦于打造一个优雅精致的 UI 上。

它的安装和配置都没什么可说的,按照 Readme 文档的来就是了。

重点是来瞅瞅它的一些范例:

  • 异步 LSP 查找

https://user-images.githubusercontent.com/41671631/107140076-ae77ec00-695a-11eb-8329-0b9d8361bfeb.gif

  • 查看帮助文档

https://user-images.githubusercontent.com/41671631/106566308-1dc09b00-656b-11eb-85e2-2ab5b23599c9.gif

  • 变量重命名

https://user-images.githubusercontent.com/41671631/106115648-f6915480-618b-11eb-9818-003cfb15c8ac.gif

  • 浮动终端窗口

https://user-images.githubusercontent.com/41671631/105658287-2c6ed880-5f01-11eb-8af6-daa6fd23576c.gif

确实相当精致!

这种独有的 “Terminal 美学”,真的有一种让人欲罢不能的魅力。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK