neovim-session-manager icon indicating copy to clipboard operation
neovim-session-manager copied to clipboard

Support Multiple Replacers

Open michaeljpeters opened this issue 2 years ago • 0 comments

What do you think about adding a new file that contains the following objects:

replacers.lua

default = {
    dir_to_session_filename = ..., -- <current dir_to_delimited_session_filename>
    session_filename_to_dir = ..., -- <current delimited_session_filename_to_dir>
}

git_repo = {
   -- ... The git repo implementation ...
}

Then, in configuration, you could do something like

... .setup({ replacer = require('session_manager.replacers').git_repo, ... })

This would make it easier to support new replacer implementations.

Originally posted by @michaeljpeters in https://github.com/Shatur/neovim-session-manager/pull/64#discussion_r1110234125

michaeljpeters avatar Feb 23 '23 18:02 michaeljpeters