vimrc

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules

commit 757ce3320cd6210fe2e2369e6c081870a4746c54
parent 7cd57b23dbb7f8a66c6fe00a433ddc29a19938b8
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Tue, 25 Jan 2022 12:53:52 -0500

feat: Emmet config

Diffstat:
Mplugin/pablo/ale.vim | 2+-
Aplugin/pablo/emmet.vim | 22++++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/plugin/pablo/ale.vim b/plugin/pablo/ale.vim @@ -15,7 +15,7 @@ let g:ale_fixers = { \ 'c': ['clang-format'], \ 'cpp': ['clang-format'], \ 'css': ['stylelint'], -\ 'html': ['stylelint', 'tidy'], +\ 'html': ['stylelint'], \ 'mail': [], \ 'plaintex': ['latexindent'], \ 'python': ['yapf'], diff --git a/plugin/pablo/emmet.vim b/plugin/pablo/emmet.vim @@ -0,0 +1,22 @@ +let g:user_emmet_settings = { +\ 'variables': {'lang': 'en'}, +\ 'html': { +\ 'default_attributes': { +\ 'option': {'value': v:null}, +\ 'textarea': {'id': v:null, 'name': v:null, 'cols': 10, 'rows': 10}, +\ 'img': {'loading': 'lazy'}, +\ }, +\ 'snippets': { +\ 'html:5': "<!DOCTYPE html>\n" +\ ."<html lang=\"${lang}\">\n" +\ ."<head>\n" +\ ."\t<meta charset=\"${charset}\">\n" +\ ."\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n" +\ ."\t<meta name=\"X-UA-Compatible\" content=\"ie=edge\">\n" +\ ."\t<title></title>\n" +\ ."</head>\n" +\ ."<body>\n\t${child}|\n</body>\n" +\ ."</html>", +\ }, +\ }, +\}