vim: make gf
work in init.lua
This commit is contained in:
parent
50f2d9d8c8
commit
4d52a8204b
1 changed files with 3 additions and 0 deletions
|
@ -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' },
|
||||
|
|
Loading…
Add table
Reference in a new issue