Browse Source

Merge branch 'master' of git.schneider-hosting.de:schneider/dotfiles

master
Schneider 5 years ago
parent
commit
e7be5f166e
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 15
      init.vim
  2. 20
      vim/ftplugin/javascript.vim

15
init.vim

@ -84,20 +84,6 @@ Plug 'lumiliet/vim-twig', { 'for': [ 'php', 'html' ] } " Twig templates
Plug 'Rican7/php-doc-modded', { 'for': 'php' } " Automatic phpdoc comments Plug 'Rican7/php-doc-modded', { 'for': 'php' } " Automatic phpdoc comments
"}}} "}}}
" Python{{{
Plug 'davidhalter/jedi-vim', { 'for': 'python', 'do': 'pip install jedi' }
Plug 'zchee/deoplete-jedi', { 'for': 'python' }
Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
"}}}
" Java{{{
Plug 'artur-shaik/vim-javacomplete2', { 'for': 'java' }
"}}}
" MIPS{{{
Plug 'vim-scripts/mips.vim'
"}}}
" All of your Plugins must be added before the following line " All of your Plugins must be added before the following line
call plug#end() " required call plug#end() " required
filetype plugin indent on " required filetype plugin indent on " required
@ -179,6 +165,7 @@ nnoremap <leader><C-p> :CtrlPTag<cr>
nmap <C-p> :Files<CR> nmap <C-p> :Files<CR>
nmap <leader><C-p> :Tags<CR> nmap <leader><C-p> :Tags<CR>
nmap <leader>/ :Rg<CR> nmap <leader>/ :Rg<CR>
nmap <leader>b :Buffers<CR>
" Toggle NERDTree " Toggle NERDTree
nmap <silent> <leader>k :NERDTreeToggle<cr> nmap <silent> <leader>k :NERDTreeToggle<cr>

20
vim/ftplugin/javascript.vim

@ -1,17 +1,17 @@
" use prettier in ALE " use prettier in ALE
let g:ale_fixers = {}
let g:ale_fixers['javascript'] = ['prettier']
let g:ale_javascript_prettier_options = '--no-semi --single-quote'
let g:ale_fixers['vue'] = ['prettier']
let g:ale_vue_prettier_options = '--no-semi --single-quote'
let g:ale_fix_on_save = 1
let g:ale_javascript_prettier_use_local_config = 1
let b:ale_fixers = {}
let b:ale_fixers['javascript'] = ['prettier']
let b:ale_javascript_prettier_options = '--no-semi --single-quote'
let b:ale_fixers['vue'] = ['prettier']
let b:ale_vue_prettier_options = '--no-semi --single-quote'
let b:ale_fix_on_save = 1
let b:ale_javascript_prettier_use_local_config = 1
"autocmd bufwritepost *.js silent !standard --fix % "autocmd bufwritepost *.js silent !standard --fix %
set wildignore+=node_modules
setlocal wildignore+=node_modules
set tabstop=2
set shiftwidth=2
setlocal tabstop=2
setlocal shiftwidth=2
" Create jsdoc with ,h " Create jsdoc with ,h
nnoremap <leader>h :JsDoc<CR> nnoremap <leader>h :JsDoc<CR>
Loading…
Cancel
Save