vim: replace autocmds that just set 'filetype' with ftdetect

This commit is contained in:
Fernando Schauenburg 2022-02-01 22:23:29 +01:00
parent 7b9b0c297b
commit 445e6c4a9d
3 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,7 @@
vim.cmd([[
augroup SrecDetect
autocmd!
autocmd BufNewFile,BufRead *.sx,*.s19 set filetype=srec
augroup END
]])

View file

@ -0,0 +1,7 @@
vim.cmd([[
augroup VagrantDetect
autocmd!
autocmd BufNewFile,BufRead Vagrantfile set filetype=ruby
augroup END
]])

View file

@ -11,8 +11,6 @@ end
make_autocmds {
buffers = {
{ 'BufNewFile,BufRead', '*.sx,*.s19', 'set filetype=srec' },
{ 'BufNewFile,BufRead', 'Vagrantfile', 'set filetype=ruby' },
-- Make it possible to use `gf` to jump to my configuration modules.
{ 'BufNewFile,BufRead', 'init.lua',
"setlocal path+=~/.config/nvim/lua includeexpr=substitute(v:fname,'\\\\.','/','g')"},