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

spacevim中使用跳转到新打开的文件无代码高亮 #123

Open
code-scan opened this issue Dec 26, 2021 · 5 comments
Open

spacevim中使用跳转到新打开的文件无代码高亮 #123

code-scan opened this issue Dec 26, 2021 · 5 comments

Comments

@code-scan
Copy link

您好,我使用spacevim安装了您的插件,但是我使用gr跳转到非当前文件的代码块的时候

会新开一个buffer,但是这个buffer并不会对代码进行高亮渲染

2021-12-27_01-03
2021-12-27_01-03_1

@ray-x
Copy link
Owner

ray-x commented Dec 26, 2021

Could you check filetype and syntax of the new buffer?
Also, are you using treesitter for highlight?

@code-scan
Copy link
Author

code-scan commented Dec 27, 2021

安装了treesitter之后代码高亮正常了,但是代码提示和gr跳转依然不能使用

https://asciinema.org/a/458748

@ray-x
Copy link
Owner

ray-x commented Dec 27, 2021

Do you mean hover and reference not work for you?
What is your output of LspKeymaps.
Hover should mapped to K and gr should mapped to reference()
Do you use windows?

@code-scan
Copy link
Author

我的lspkeymap是这样

2021-12-29_03-21

我的系统环境
Linux cbox 5.15.7-1-MANJARO #1 SMP PREEMPT Wed Dec 8 10:09:19 UTC 2021 x86_64 GNU/Linux
NVIM v0.6.0
Build type: Release
LuaJIT 2.0.5
Compiled by builduser

@ray-x
Copy link
Owner

ray-x commented Dec 29, 2021

The key mapping looks fine.
I do not have linux/manjaro to reproduce the issue.
From your video, it seemsgr works fine (00:15 ~ 00:17). Could you be more specific about how to reproduce the issue and what is the expected behaviour?

Could you also check if you have other keys mapped to the default keymaps? I noticed that you installed vim-go which may conflict with the navigator keymaps.

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

2 participants