diff options
| author | Mike Vink <mike@pionative.com> | 2024-02-25 13:43:05 +0100 |
|---|---|---|
| committer | Mike Vink <mike@pionative.com> | 2024-02-25 13:43:05 +0100 |
| commit | eb1d06ef7fa976bd1f1ff57bbbc790f88b48214c (patch) | |
| tree | ed6a51096db1d64f4f5ed3de871032dc28a7f104 /mut/neovim | |
| parent | 1a45bc736bead8086eed5f3cf140102e8953e7e3 (diff) | |
remote again
Diffstat (limited to 'mut/neovim')
| -rw-r--r-- | mut/neovim/fnl/conf/events.fnl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mut/neovim/fnl/conf/events.fnl b/mut/neovim/fnl/conf/events.fnl index 4e03df8..dcc73a2 100644 --- a/mut/neovim/fnl/conf/events.fnl +++ b/mut/neovim/fnl/conf/events.fnl @@ -63,6 +63,14 @@ (lint.try_lint) (vim.schedule #(vim.diagnostic.setloclist {:open false})))}) +(event + [:BufEnter] + {:group "conf#events" + :callback + #(do (var dir (vim.fn.fnamemodify (vim.fn.expand "%") ":h")) + (if (vim.startswith dir "oil://") (set dir (dir:sub (+ 1 (length "oil://"))))) + (vim.cmd (.. "silent !lf -remote \"send cd '" dir "'\"")))}) + (local session-file (.. vim.env.HOME "/.vimsession.vim")) (event |
