yujinyuz / gitpad.nvim

minimal neovim plugin for taking down notes for git projects, branch, etc.
https://yujinyuz.github.io/gitpad.nvim/
MIT License
43 stars 4 forks source link

Add split window on open support #11

Open RyanCallahan312 opened 4 days ago

RyanCallahan312 commented 4 days ago

For dynamic scripting languages a really common workflow is to have a window with the codebase, a window with a terminal running a repl, and a window with a scratch pad for scripts.

The current version of the plugin always opens in a floating window. This PR adds flexibility to configure the plugin to open by splitting the current window.

yujinyuz commented 2 days ago

@RyanCallahan312 Thanks for the PR.

LGTM but does this break existing users that already have their setup configured?

RyanCallahan312 commented 1 day ago

@yujinyuz latest commit makes configuration backwards compatible.

Also, I'm probably going to have another PR in the coming weeks to do some stuff configuration around default file types. I'm not exactly happy with a solution I've come up with so far, but it's for the same workflow as this PR.