cvigilv / esqueleto.nvim

Reduce your boilerplate code the lazy-bones way
MIT License
100 stars 7 forks source link

Consider support triggering by file extension. #45

Open egolearner opened 9 months ago

egolearner commented 9 months ago

There are header files and implementation files for c/c++. With current file type or file name trigger, it's impossible to set different file templates for header files and implementations.

It seems a good idea to support trigger by file extension(with precedence between file name and file type if supported), which will solve the above issue. For other scenarios, it's a lot easier to define a new extension than to define a new file type.

cvigilv commented 8 months ago

Hi! Sorry for the late response. Could you give me an example? I don't write C/C++ so I just partially get the problem.

Thanks in advance!