The current example in the README.md regarding additional functionality and how to define commands per filetype has a little drawback with vim.fn.expand('%') due the current way to call this function at load time and not when the keymap is being called; more information about: in this redit post
The current approach in the new example solves this issue.
The current example in the
README.md
regarding additional functionality and how to define commands per filetype has a little drawback withvim.fn.expand('%')
due the current way to call this function at load time and not when the keymap is being called; more information about: in this redit postThe current approach in the new example solves this issue.