diff options
Diffstat (limited to 'modules/daffm.home/config/config.nvim.toml')
| -rw-r--r-- | modules/daffm.home/config/config.nvim.toml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/daffm.home/config/config.nvim.toml b/modules/daffm.home/config/config.nvim.toml new file mode 100644 index 0000000..0e6ac1a --- /dev/null +++ b/modules/daffm.home/config/config.nvim.toml @@ -0,0 +1,22 @@ +opener = """ + if [ -z "$DAFFM_SELECTIONS_OUT" ]; then + echo "<cant open file>" + else + echo "$files" > "$DAFFM_SELECTIONS_OUT"; + fi +""" +extend = "@" + +[keymap] +l = "open-and-quit" +"<cr>" = "open-and-quit" + +"~" = """eval + echo "<daffm>cd '${DAFFM_PATH_RELATIVE_TO:-$PWD}'" +""" + +[commands] +open-and-quit = [ + """eval [ -z $DAFFM_SELECTIONS_OUT ] || [ -d "$cursor" ] || echo '<daffm>quit' """, + "open" +] |
