Skip to content

gh gj gk 等不起作用 #108

Answered by nshen
Linya-IronMan asked this question in Q&A
Sep 5, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

多半是lsp没启动, :LspInfo 看看有volar吗

lsp快捷键是 on_attach 到 buffer 时定义的,可能没调用到on_attach,所以没有快捷键。

vim.lsp.buf 应该就是当前内存中的这个文件,你自己调用的时候提示的是当前的这个buffer没有找到 lsp,所以应该是lsp没启动。

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Linya-IronMan
Comment options

@nshen
Comment options

nshen Sep 5, 2022
Maintainer

Answer selected by nshen
Comment options

You must be logged in to vote
1 reply
@Linya-IronMan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants