Lsp

  • Published on
    ## The Issue 如果不是用到了一个叫 [peek](https://github.com/phw/peek) 的录屏软件,我可能没听过这个叫 vala 的语言,GNOME 搞出来的东西。 老灯日常用的 [geary](https://gitlab.gnome.org/GNOME/geary) 邮件客户端和 [peek](https://github.com/phw/peek) 都是这个语言编写的。 老灯发现neovim 官方的 vala lang server 配置无法适用于 peek 这个项目。已经提交了 PR ( https://github.com/neovim/nvim-lspconfig/pull/789 ), 不过这个合并效率真是低,都两周了,还没动静,没给close 也没给merge. ...
  • Published on
    本文主要按 neovim lsp 来讲的,但是其中关于 lang server 的很多东西,其实是通用的。简单在此记录,备忘。 ## common lsp config 一般除了跳转定义,老灯还启用了 `completion` 自动完成以及 `lsp-status` 用于状态显示。 这里定义了一个公用的 `mix_attach` 用于lsp `on_attach` 事件 ```lua local lsp_status = require('lsp-status') lsp_status.register_progress() lsp_status.config({ indicator_errors = "❌", ...