nvim: osc7 goodness

This commit is contained in:
Daniel Lundin 2024-02-08 10:23:55 +01:00
parent 09b2992cce
commit 994ee848f6

View file

@ -21,3 +21,10 @@ vim.filetype.add({
templ = "templ",
},
})
-- AutoCommand OSC7 workaround for tmux
-- see https://github.com/neovim/neovim/issues/21771
vim.api.nvim_create_autocmd("dirchanged", {
pattern = "*",
command = 'call chansend(v:stderr, printf("\\033]7;%s\\033", v:event.cwd))',
})