nvim: add autocmd to guess and set filetype for .tmpl (for chezmoi)
This commit is contained in:
parent
fd3a54ce62
commit
2869e5b244
1
dot_config/nvim/lua/utils/chezmoi-tmpl.lua
Normal file
1
dot_config/nvim/lua/utils/chezmoi-tmpl.lua
Normal file
@ -0,0 +1 @@
|
||||
vim.cmd([[ autocmd BufNewFile,BufRead *.tmpl execute 'set filetype='..matchlist(expand('<afile>'), '.*\.\(.*\)\.tmpl$')[1] ]])
|
@ -1,3 +1,4 @@
|
||||
require("utils.zenkaku")
|
||||
require("utils.trim")
|
||||
require("utils.setindent")
|
||||
require("utils.chezmoi-tmpl")
|
||||
|
Loading…
Reference in New Issue
Block a user