vim: make gf work in init.lua

This commit is contained in:
Fernando Schauenburg 2022-01-23 20:12:58 +01:00
parent 50f2d9d8c8
commit 4d52a8204b

View file

@ -15,6 +15,9 @@ make_autocmds {
{ 'BufNewFile,BufRead', 'gitconfig', 'set filetype=gitconfig' },
{ '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')"},
},
filetypes = {
{ 'FileType', 'gitcommit', 'setlocal textwidth=72' },