summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc34
1 files changed, 6 insertions, 28 deletions
diff --git a/.vimrc b/.vimrc
index a6e0644..7f3149d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -16,8 +16,12 @@ syntax on " switch syntax highlighting on
" Matching and key mappings
:match ErrorMsg '\%>80v.\+' " right-hand drift warning
-"" automatically finish closing tags
-:inoremap <lt>/ </<C-x><C-o><Esc>==gi
+
+" Automatically finish closing tags
+augroup html_vue_hbs
+ au!
+ autocmd BufNewFile,BufRead *.html|*.vue|*.hbs :inoremap <lt>/ </<C-x><C-o><Esc>==gi
+augroup END
" only do this if autocommands enabled
if has("autocmd")
@@ -44,35 +48,9 @@ if empty(glob('~/.vim/autoload/plug.vim'))
endif
call plug#begin('~/.vim/plugged')
-"Plug 'dense-analysis/ale'
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
call plug#end()
-"" ALE
-"let g:ale_linter_aliases = {
-"\ 'vue': ['vue', 'javascript'],
-"\ 'liquid': ['liquid', 'html'],
-"\}
-"let g:ale_linters = {
-"\ 'vue': ['eslint', 'vls'],
-"\ 'javascript': ['eslint'],
-"\ 'html': ['htmlhint'],
-"\ 'rust': []
-"\}
-"let g:ale_fixers = {
-"\ 'css': ['prettier'],
-"\ 'html': ['prettier'],
-"\ 'javascript': ['eslint'],
-"\ 'json': ['prettier'],
-"\ 'liquid': ['prettier'],
-"\ 'markdown': ['prettier'],
-"\ 'vue': ['eslint'],
-"\ 'scss': ['prettier'],
-"\ '*': ['remove_trailing_lines', 'trim_whitespace'],
-"\ 'rust': []
-"\}
-"let g:ale_fix_on_save = 1
-
" COC.VIM
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :