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

Insufficient documentation regarding keymaps #8

Open
goncalves-diogo opened this issue Jul 6, 2021 · 3 comments
Open

Insufficient documentation regarding keymaps #8

goncalves-diogo opened this issue Jul 6, 2021 · 3 comments

Comments

@goncalves-diogo
Copy link

goncalves-diogo commented Jul 6, 2021

Hi, I'm currently trying to get this to work on my workflow and i can't reach any breakthrough.

My current configuration file has:

tree_docs = {
    enable = true,
    keymaps = {
        doc_node_at_cursor = "<leader>a"
        },
  },

I was trying to remap doc_node_at_cursor to a. However i can't seem to get this to work. I've also ran :nmap in order to see all the normal mappings and it is not mapped at all

@Mte90
Copy link

Mte90 commented Jul 11, 2021

I agree with that I see that also the default hotkey is not mapped in vim.

@steelsojka
Copy link
Collaborator

steelsojka commented Jul 11, 2021 via email

@Mte90 Mte90 mentioned this issue Jul 12, 2021
@nathanielks
Copy link

Noting for future readers: I haven't been able to figure out why, but I think this plugin can't map when something else exists at the beginning of the map. That's a poor way of explaining, so hopefully this is clearer: the default mapping is gdd. If you have any mapping that begins with g, the mapping won't apply. I think this is also why mapping to <leader> doesn't work, either. The way I figured it out was by trying different mappings and found one that didn't have anything (for me, this was fb).

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

4 participants