navigator.lua
navigator.lua copied to clipboard
spacevim中使用跳转到新打开的文件无代码高亮
您好,我使用spacevim安装了您的插件,但是我使用gr
跳转到非当前文件的代码块的时候
会新开一个buffer,但是这个buffer并不会对代码进行高亮渲染
Could you check filetype
and syntax
of the new buffer?
Also, are you using treesitter
for highlight?
安装了treesitter
之后代码高亮正常了,但是代码提示和gr
跳转依然不能使用
https://asciinema.org/a/458748
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?
我的lspkeymap是这样
我的系统环境 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
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.