Skip to content
Discussion options

You must be logged in to vote

就是在你的上一层setup里,不要调用lspconfig[name] 了,你的图中 on_setup 把参数删掉,应该就不会报错了

现在 lsp 配置内置了,要在 on_setup 里调用下边这个来配置lsp

  vim.lsp.config("lua_ls", { ...})
  vim.lsp.enable("lua_ls")

类似这样:
https://github.com/nshen/InsisVim/blob/main/lua/insis/lsp/config/lua.lua

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by majorzpley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants