rubiin / fortune.nvim

A fortune plugin for neovim
BSD 3-Clause "New" or "Revised" License
19 stars 4 forks source link

Specify and read fortune files #3

Open angles-n-daemons opened 5 months ago

angles-n-daemons commented 5 months ago

Clear and concise description of the problem

Hi. Thanks for the great plugin, first of all.

I'm interested in using my own fortune files with this plugin, in the format with % as a delimiter. Is this something you'd be interested in? I'm happy to open a PR

Suggested solution

Modify the options to include a files table, which loads in fortunes from an absolute path. It uses % as the fortune delimiter, which look like the following:

Be careful when you bite into your hamburger.
        -- Derek Bok
%
BOO!  We changed Coke again!  BLEAH!  BLEAH! 
%
Boycott meat -- suck your thumb.
%

Alternative

No response

Additional context

No response

Validations

rubiin commented 5 months ago

Yeah . Happy to add it :) go for it