Add shortcuts to open in splits and tabs
CRAG666 opened this issue · 3 comments
First of all I love your plugin on the other hand I work a lot with splits and tabs and I really miss being able to open the files this way
@CRAG666, thanks for checking out the plugin!
To achieve this, you can use the following code...
require('fm-nvim').setup{
config =
{
edit_cmd = "split"
-- or...
edit_cmd = "tabedit"
}
}
This is the only way of opening files in splits and tabs as of right now, however, I'll be sure to update to plugin to support this. How would you like to see this be implemented?
with commands like C-v to split vertically and C-h to split horizontally, although it would be great to be able to customize the keymap
Just updated the plugin to include these mappings which you read about in the README. I'll make sure to allow the user to customize these mappings.
Update:
You can configure these mappings with the following...
require('fm-nvim').setup{
mappings = {
vert_split = "<C-v>",
horz_split = "<C-h>",
tabedit = "<C-h>",
edit = "<C-e>"
}
}