你好,我参考了此repo下的V2版本,在配置mason lsp时,遇到了以下问题,我还是想保持原来的结构不变如何修改lua.lua中的on_setup自定义函数呢 #179
Answered
by
nshen
majorzpley
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
nshen
Nov 14, 2025
Replies: 1 comment
-
|
就是在你的上一层setup里,不要调用lspconfig[name] 了,你的图中 on_setup 把参数删掉,应该就不会报错了 现在 lsp 配置内置了,要在 on_setup 里调用下边这个来配置lsp 类似这样: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
majorzpley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

就是在你的上一层setup里,不要调用lspconfig[name] 了,你的图中 on_setup 把参数删掉,应该就不会报错了
现在 lsp 配置内置了,要在 on_setup 里调用下边这个来配置lsp
类似这样:
https://github.com/nshen/InsisVim/blob/main/lua/insis/lsp/config/lua.lua