ldelossa / nvim-ide

A full featured IDE layer for Neovim. Heavily inspired by VSCode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File explorer: keymaps should have a preset you can set which makes it match nvim-tree's keymaps

mrjones2014 opened this issue · comments

commented

I (and I think many others) are switching to this from nvim-tree. Could we get an option like keymaps = { preset = 'nvim-tree' } that makes it easily match nvim-tree's keymaps, instead of user having to override every keymap?

Love this idea!

commented

Especially because for example, n is supposed to go to next / search match, there's a few things like this where built-in keymaps are being overwritten.

Sounds like this can easily be solved by just documenting a table variable which holds the nvim-tree key maps, and placing that variable in the user config for Explorer. I'm not sure it warrants an API.

I havent used nvim-tree, so I don't one the keymaps. But we can add those keymap vars to docs, and include one for NERD as well if the community contributes them

commented

What about something like keymaps = require('ide.components.explorer.presets').nvim_tree?

LGTM, feel free to send PR for that. then if there are any NERD users, they can do the same as well.