···5454| keymaps.yank | string | `"yy"` |
5555| keymaps.close | table of strings | `{ "<Esc>", "<C-c>", "q" }` |
5656| num_behavior | string defining jump behavior "prefix" or "jump" | `"prefix"` |
5757-| persist_type | string defining persistence type "sql" or "file" | `"sql"` |
5757+| persist_type | string defining persistence type "sql" or "file" | `"sqlite"` |
5858| persist_path | string defining path for persistence file | "/tmp/yankbank.db" |
59596060If no separator is desired, pass in an empty string for sep:
+3-3
lua/yankbank/persistence.lua
···1010-- - might need plenary for the asynchronous r/w accesses
11111212function M.enable_persistence(yanks, opts)
1313- if not opts.method then
1313+ if not opts.persist_type then
1414 return
1515- elseif opts.method == "file" then
1515+ elseif opts.persist_type == "file" then
1616 -- TODO:
1717 require("persistence.file").setup_persistence(
1818 yanks,
1919 opts.persist_path,
2020 opts.max_entries
2121 )
2222- elseif opts.method == "sqlite" then
2222+ elseif opts.persist_type == "sqlite" then
2323 -- TODO:
2424 require("persistence.sql").init_db(yanks, opts.persist_path)
2525 end