neovim is a great text editor | https://neovim.io | https://neovim.discourse.group | bridged to #neovim:matrix.org and #neovim at irc.libera.chat. Breaking changes at https://github.com/neovim/neovim/issues/14090
pattern=vim.fn.stdpath('config') .. "/plugin/*",
au! BufWritePost ~/.config/nvim/* source %
pattern=vim.fn.resolve(vim.fn.stdpath("config")).."/plugin/*"
work?
vim.cmd [[au! BufWritePost ~/.config/nvim/* source %]]
pattern
will not follow symlinks, while the BufWrite
will
BufWrite
gets triggered for the link origin, while the pattern only sees the link target
pattern
is Just A String for the API, not a (validated/expanded) path
<amatch>
looks -- either escaped or not; you need to match that)