Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于LSP设置问题 #28

Closed
Timson020 opened this issue Apr 5, 2022 · 3 comments
Closed

关于LSP设置问题 #28

Timson020 opened this issue Apr 5, 2022 · 3 comments

Comments

@Timson020
Copy link

Timson020 commented Apr 5, 2022

服务器配置项页面
设置了sumneko_lua 和 eslint 的 lsp

但是快捷键 在 lua中有效,js中无效
跪求大佬整理一下关于lsp配置文档中的解释,新人才更容易理解

image

@sober-wang
Copy link

在 opts 中只配置 on_attach 部分试一下,settings 不一定适用于所有语言

@nshen
Copy link
Owner

nshen commented Apr 7, 2022

是不是 setup 里没引用到这个配置文件呀

@Timson020
Copy link
Author

@nshen
目前我的解决方案就是使用eslint(错误提示) + tsserver(使用on_attach的快捷键绑定).
tsserver 取消所有的提示

但是在eslint的LSP中的on_attach确实无效, 暂时没能力查看他们的源码,所以就先这样

@nshen nshen closed this as completed Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants