tidying up
This commit is contained in:
parent
df3e7c3071
commit
e65fb48e33
27
vimrc
27
vimrc
|
@ -490,14 +490,8 @@ let g:ale_sign_column_always = 1
|
||||||
|
|
||||||
let g:ale_linters = {'scss': ['stylelint'], 'javascript': ['eslint'], 'php':['php'], 'html':['htmlhint']}
|
let g:ale_linters = {'scss': ['stylelint'], 'javascript': ['eslint'], 'php':['php'], 'html':['htmlhint']}
|
||||||
let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix'
|
let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix'
|
||||||
" let g:ale_javascript_eslint_options = '-c ~/.config/eslint/.eslintrc.js'
|
|
||||||
let g:ale_fixers = {'javascript': ['eslint']}
|
let g:ale_fixers = {'javascript': ['eslint']}
|
||||||
|
|
||||||
" function! ale#handlers#eslint#FindConfig(buffer)
|
|
||||||
" return '/home/ray/.config/eslint/.eslintrc.js'
|
|
||||||
" endfunction
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function! LinterStatus() abort
|
function! LinterStatus() abort
|
||||||
let l:counts = ale#statusline#Count(bufnr(''))
|
let l:counts = ale#statusline#Count(bufnr(''))
|
||||||
|
@ -522,15 +516,6 @@ let g:UltiSnipsEditSplit='horizontal'
|
||||||
let g:netrw_liststyle=3
|
let g:netrw_liststyle=3
|
||||||
let g:netrw_list_hide='^\..*'
|
let g:netrw_list_hide='^\..*'
|
||||||
|
|
||||||
" NERDtree
|
|
||||||
" nnoremap <F3> :NERDTreeFocus<CR>
|
|
||||||
" nnoremap <leader>nt :NERDTreeFocus<CR>
|
|
||||||
" nnoremap <leader>nf :NERDTreeFind<CR>
|
|
||||||
" " allow closing if only window open is a NERDTree
|
|
||||||
" augroup nerdtreewindow
|
|
||||||
" autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
|
||||||
" augroup END
|
|
||||||
" let NERDTreeQuitOnOpen = 1
|
|
||||||
|
|
||||||
" TagBar
|
" TagBar
|
||||||
nnoremap <leader>tb :TagbarOpen fj<CR>
|
nnoremap <leader>tb :TagbarOpen fj<CR>
|
||||||
|
@ -549,21 +534,9 @@ nnoremap <leader>ut :UndotreeToggle<cr>
|
||||||
|
|
||||||
" vim-project-tags
|
" vim-project-tags
|
||||||
source ~/.vim/bundle/vim-elhiv/elhiv.vim
|
source ~/.vim/bundle/vim-elhiv/elhiv.vim
|
||||||
|
|
||||||
" override function so we can have custom tag names for built in languages
|
|
||||||
" function! project_tags#add_built_in_language_support()
|
|
||||||
" call project_tags#add_language('.jstags', 'js')
|
|
||||||
" call project_tags#add_language('.vimtags', 'vim')
|
|
||||||
" call project_tags#add_language('.phptags', 'php')
|
|
||||||
" endfunction
|
|
||||||
|
|
||||||
" above function causes error (maybe autoloading problem when no
|
|
||||||
" tags are being used or whatever?)
|
|
||||||
" see if following three lines work instead
|
|
||||||
call project_tags#add_language('.jstags', 'js')
|
call project_tags#add_language('.jstags', 'js')
|
||||||
call project_tags#add_language('.vimtags', 'vim')
|
call project_tags#add_language('.vimtags', 'vim')
|
||||||
call project_tags#add_language('.phptags', 'php')
|
call project_tags#add_language('.phptags', 'php')
|
||||||
|
|
||||||
call project_tags#add_language('.csstags','css')
|
call project_tags#add_language('.csstags','css')
|
||||||
call project_tags#add_language('.scsstags','scss')
|
call project_tags#add_language('.scsstags','scss')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue