Skip to content

How to write a keybind to open current file in mini.files and how to use show_at_cursor() on git diff command to go to buffer which is already open. #1209

Closed Answered by echasnovski
231tr0n asked this question in Q&A
Discussion options

You must be logged in to vote
  1. How do I open current file location in mini.files instead of opening pwd and navigating to it?

It is in documentation of the main open() function.

  1. When using MiniGit.show_at_cursor() on :Git diff commands diffs, it opens up a new window instead of navigating to the existing one. Also the new window does not have an Lspattached to it and hence I will have to manually open the file again. How do you think I can solve this issue.

Only showing in split is supported. Showing in the same window is not clean enough because returning to the :Git diff buffer is an extra hustle as the buffer is not listed. This won't be supported.

LSP server is not attached because opened buffer is not actu…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@echasnovski
Comment options

@231tr0n
Comment options

@231tr0n
Comment options

@231tr0n
Comment options

@echasnovski
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants