1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Ryan Kes
2de46cb2ea enable closetag for vue files 2020-08-27 21:30:20 +02:00
Ryan Kes
9bb04c593a added more ale fixers 2020-08-27 17:40:43 +02:00

View File

@ -98,9 +98,9 @@
" Key Mappings { " Key Mappings {
" Switch between different windows by their direction " Switch between different windows by their direction
no <C-j> <C-w>j| "switching to below window no <C-j> <C-w>j| "switching to below window
no <C-k> <C-w>k| "switching to above window no <C-k> <C-w>k| "switching to above window
no <C-l> <C-w>l| "switching to right window no <C-l> <C-w>l| "switching to right window
no <C-h> <C-w>h| "switching to left window no <C-h> <C-w>h| "switching to left window
" More convenient leaders " More convenient leaders
@ -190,7 +190,7 @@
let g:ale_sign_warning = '⚠️' let g:ale_sign_warning = '⚠️'
" Fix files " Fix files
let g:ale_fixers = {'*': ['remove_trailing_lines', 'trim_whitespace'], 'javascript': ['prettier', 'eslint'], 'sh': ['shfmt'], 'json': ['prettier'], 'go': ['gofmt', 'goimports']} let g:ale_fixers = {'*': ['remove_trailing_lines', 'trim_whitespace'], 'vue': ['importjs', 'prettier', 'eslint'], 'javascript': ['importjs', 'prettier', 'eslint'], 'sh': ['shfmt'], 'json': ['prettier'], 'go': ['gofmt', 'goimports'], 'markdown': ['prettier', 'remark-lint', 'textlint'], 'rust': ['rustfmt']}
" Fix files automatically on save " Fix files automatically on save
let g:ale_fix_on_save = 1 let g:ale_fix_on_save = 1
@ -226,6 +226,10 @@
nnoremap <silent> <Leader>H :Helptags<CR> nnoremap <silent> <Leader>H :Helptags<CR>
nnoremap <silent> <Leader>hh :History<CR> nnoremap <silent> <Leader>hh :History<CR>
nnoremap <silent> <Leader>h: :History:<CR> nnoremap <silent> <Leader>h: :History:<CR>
nnoremap <silent> <Leader>h/ :History/<CR> nnoremap <silent> <Leader>h/ :History/<CR>
" }
" closetag {
let g:closetag_filetypes = 'html,xhtml,phtml,vue'
" } " }
" } " }