有办法更具项目配置layer吧,比如C++大项目就不开启lsp, 默认开启lsp

RT 字数补丁 gtags有类似VIM的自动生成update配置么

c++的lsp性能都很好,建议JavaScript项目这么操作。

tag有counsel-etags,但没vim-gutentags那么爽

vim-gutentags有什么优点?我现在vim用得很少,vim插件不太了解了。

配合上gutentags_plus

  1. 后台静默增量更新(完全无感)也不用配置类似interval或者hook来更新
  2. 支持 gnu global,也因此支持更多样的跳转行为
0 or s: Find this symbol
1 or g: Find this definition
2 or d: Find functions called by this function
3 or c: Find functions calling this function
4 or t: Find this text string
6 or e: Find this egrep pattern
7 or f: Find this file
8 or i: Find files #including this file
9 or a: Find places where this symbol is assigned a value
  1. 自动按项目管理tag和读取tag,而且可以选择tag存放的目录比如~/.cache/tags。 污染项目文件的情况会少一点(虽然加在gitignore里也可以避免,但每次ls的时候还是会不爽一下的)
[passky] >>> ~/.cache/tags  
% ls                                                                                                                                                                     
home-passky-config-.tags  _wildignore.options

1, 增量更新我可以研究一下。实际上emacs多进程处理得很好。不卡UI进程。interval和hook设计的目的就是让用户可以完全控制进程启动频率。在性能和方便两者之间取舍我总是优先选择性能。

2, gnu global不会支持 Shohei YOSHIDA 早已写了 helm 和 counsel两个版本,都支持gtags(GNU Global的命令行)

3 应该很简单,我看一下代码,也许已有了也说不定。

1 个赞