ftplugin consists of a series of directories for a specific filetype; inside this, you can add vim scripts to set options and/or add functionality. This issue intends to change the current design (pretty messy tbh) and move to a design inspired by this directory structure and function.
For this, we need to scrap the matching of regex patterns (*.py, for example) and change this to respond to filetype (vim.bo.filetype). For filename-matching patterns, we will maintain the current design of matching the whole file name but move the templates into a directory with this name.
ftplugin
consists of a series of directories for a specific filetype; inside this, you can add vim scripts to set options and/or add functionality. This issue intends to change the current design (pretty messy tbh) and move to a design inspired by this directory structure and function.For this, we need to scrap the matching of regex patterns (*.py, for example) and change this to respond to filetype (
vim.bo.filetype
). For filename-matching patterns, we will maintain the current design of matching the whole file name but move the templates into a directory with this name.So, the design will change from:
To: