this post was submitted on 22 Nov 2023
15 points (94.1% liked)

Open Source

31359 readers
177 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

I am trying to use the setup using the kickstart, and I noticed that gd ( [G]oto [D]efintion ) was not working. So I implemented goto-preview (https://github.com/rmagatti/goto-preview), and setup like recommended however, the commands (i.e. gpd and gpt) still don't work.

I've implemented rust-analyzer using Mason.

Typing gp and waiting brings up the hints for all the Goto * commands, so I know those parts are set up correctly.

Anyone else having this issue?

top 5 comments
sorted by: hot top controversial new old
[–] PokerChips@lemmy.world 2 points 1 year ago (1 children)

So apparently, it does work but not on all content. Doesn't work on HttpServer, and other content in same file but did work on definitions in other files.

Just some things I need to understand better.

[–] PokerChips@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (1 children)

Looks like Rust-Analyzer will take some time to "load". Some content will load. I needed to use [g]oto-[p]review [D]eclaration instead of [d]efinition.

Some content still does not work on any goto-preview command.

[–] PokerChips@lemmy.world 1 points 1 year ago

Ok, so most seems to work so far now. Just that HttpServer doesn't work with a goto-preview (The app works when running so the all the codebase definitions are rooted). The issue I run into now is that sometimes when going to a definition and then closing that window causes the whole NeoVim session to close.

I'll try to debug at some time.

[–] PipedLinkBot@feddit.rocks 1 points 1 year ago

Here is an alternative Piped link(s):

https://piped.video/watch?v=stqUbv-5u2s

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source; check me out at GitHub.

[–] tagginator@utter.online -1 points 1 year ago

@PokerChips Tagging Lemmy Post 'GotoPreview commands not working in Rust with Effective Vim Kickstart' (https://lemmy.ml/post/8318061): #Opensource

(Replying in this thread will appear as a comment in the lemmy discussion.)