navigator.lua icon indicating copy to clipboard operation
navigator.lua copied to clipboard

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

Open code-scan opened this issue 3 years ago • 5 comments

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

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

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

code-scan avatar Dec 26 '21 17:12 code-scan

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

ray-x avatar Dec 26 '21 17:12 ray-x

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

https://asciinema.org/a/458748

code-scan avatar Dec 27 '21 15:12 code-scan

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?

ray-x avatar Dec 27 '21 22:12 ray-x

我的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

code-scan avatar Dec 28 '21 19:12 code-scan

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.

ray-x avatar Dec 29 '21 02:12 ray-x