auto-pandoc.nvim icon indicating copy to clipboard operation
auto-pandoc.nvim copied to clipboard

Suggestion: Is it possible to have the keymap and auto_cmd builtin rather than user config ?

Open aniketgm opened this issue 2 years ago • 1 comments

Description

This plugin allows you to easily convert your markdown files using pandoc.

The ReadMe mentions this repo is for converting "markdown" files into other formats using pandoc. So unless there is a plan in future to support other text files. Can we have the part where user adds the auto_cmd in the config, directly into the code ?

I'm not aware much about lua. However, in most of the plugins I have seen so far, the users are not burdened with setting the auto_cmd. Only plugin specific options and keymaps. Speaking of keymaps. It is also better to have a default keymap defined. And tell the user that if this keymap clashes with any other of their, go ahead and set another one which they are comfortable with.

How does this sound ?

aniketgm avatar Feb 17 '24 18:02 aniketgm

Hey, thanks for your suggestions! I guess we could make setting the keybind easier, I just figured that for such a simple plugin a proper setup() function seemed overkill. Another user has had some related issues in #2 and maybe we could solve both issues at once. I do prefer default keymaps to be disabled, but that's I guess a minor issue. I'll try to work on this soon, but if you're up for a PR, I'd be more than happy to merge :)

jghauser avatar Feb 17 '24 18:02 jghauser