vim和lsp

时代进步了,编辑器也前后端分离, 基本的思路是:

  • 前端Editor,专职负责编辑,比如文字的录入,美化,修改,插入,添加等操作
  • 后端language server,负责各种语言的语法相关内容。比如关键字,函数列表,自动补全,语法检查,定义跳转等

前后端分离的好处脚趾头都想得到吧。

editor和language server之间也进化出了一套标准协议,叫做LSP,Language Server Protocol。这破玩意儿一开始是由微软搞起来的,现在发扬光大,有了LSP,vim也可以和language server通讯,像vscode一样强大了。

相信我,vim的粉丝们,稍微配置一下,一个支持LSP的现代版vim会让你闪闪发光

现在比较火的lsp插件是neoclide/coc.nvimdense-analysis/ale。他们安装在vim中,属于lsp协议中的client。通过和lsp server通讯,带来强大的语法功能

Ref

  • https://www.vimfromscratch.com/articles/vim-and-language-server-protocol



《 “vim和lsp” 》 有 4 条评论

  1. can you buy cheap cytotec online In 2016, Japanese Society of Nephrology, Japan Society of Clinical Oncology, Japanese Society of Medical Oncology, and The Japanese Society of Nephrology and Pharmacotherapy established the Committee Of this guideline drafting group, which published Guidelines for treatment of renal injury during cancer chemotherapy 2016 in Jpn J Nephrol

  2. how to buy cheap cytotec price For this, we first assessed the effects of leptin on AMPK phosphorylation in MCF 7 and MDA MB 231 breast cancer cells

  3. does priligy work I owe much, in this particular area, to the work of Paul Borreson

回复 agodelo 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注

About Me

一位程序员,会弹吉他,喜欢读诗。
有一颗感恩的心,一位美丽的妻子,两个可爱的女儿
mail: geraldlee0825@gmail.com
github: https://github.com/lisuxiaoqi
medium: https://medium.com/@geraldlee0825