mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tweak(file-templates): remove default JSON template
As described at https://www.json.org/json-en.html, JSON has multiple top-level forms (at least objects and arrays, and potentially all values as well, depending on who you ask). Of these, I would not say array is a good default. I frequently find myself deleting this default, generally to use an object instead. Because there is no consistent winner, and because the template is so trivial, it seems best to simply delete it: the cost of the template not matching the user's intent outweighs any benefit it stands to deliver when it does match the user's intent.
This commit is contained in:
committed by
Henrik Lissner
parent
6c4b7169f0
commit
893b4171b7
@ -60,7 +60,6 @@ don't have a :trigger property in `+file-templates-alist'.")
|
||||
("/bower\\.json$" :trigger "__bower.json" :mode json-mode)
|
||||
("/gulpfile\\.js$" :trigger "__gulpfile.js" :mode js-mode)
|
||||
("/webpack\\.config\\.js$" :trigger "__webpack.config.js" :mode js-mode)
|
||||
("\\.js\\(?:on\\|hintrc\\)$" :mode json-mode)
|
||||
;; Lua
|
||||
("/main\\.lua$" :trigger "__main.lua" :mode love-mode)
|
||||
("/conf\\.lua$" :trigger "__conf.lua" :mode love-mode)
|
||||
|
Reference in New Issue
Block a user