add gohtmltmpl fix to vim config
This commit is contained in:
parent
5ebe434fbf
commit
c667df83fa
1 changed files with 11 additions and 0 deletions
|
|
@ -130,3 +130,14 @@ augroup end
|
||||||
augroup rust
|
augroup rust
|
||||||
autocmd FileType rust nnoremap <Leader>lg <cmd>lua rust_where_at_line()<CR>
|
autocmd FileType rust nnoremap <Leader>lg <cmd>lua rust_where_at_line()<CR>
|
||||||
augroup end
|
augroup end
|
||||||
|
|
||||||
|
function DetectGoHtmlTmpl()
|
||||||
|
if expand('%:e') == "html" && search("{{") != 0
|
||||||
|
setfiletype gohtmltmpl
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
augroup filetypedetect
|
||||||
|
" gohtmltmpl
|
||||||
|
au BufRead,BufNewFile *.html call DetectGoHtmlTmpl()
|
||||||
|
augroup END
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue