diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-03-01 18:28:59 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-03-01 18:30:03 +0530 |
| commit | 636bcd508de1d0a06101d88435630cb1ad17a271 (patch) | |
| tree | d9176411c6cdb41162fa7108555bc0328c467353 /modules/daffm.home/config/config.nvim.toml | |
| parent | 653b19aa1e732f56453db383504fe8a5438bda5a (diff) | |
| download | nixos-config-636bcd508de1d0a06101d88435630cb1ad17a271.tar.gz nixos-config-636bcd508de1d0a06101d88435630cb1ad17a271.zip | |
Move daffm config to nix
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" +] |
