fix relative vim path
This commit is contained in:
parent
6f56f025a7
commit
ac9f24b8a3
2 changed files with 19 additions and 21 deletions
|
@ -47,5 +47,22 @@ nnoremap <S-Tab> :bprev<CR>
|
||||||
"" Shortcut to reopen closed buffer
|
"" Shortcut to reopen closed buffer
|
||||||
nmap <Leader><Leader> <c-^>
|
nmap <Leader><Leader> <c-^>
|
||||||
|
|
||||||
" source plugins
|
" auto-install vim-plug
|
||||||
source ./plugins.vim
|
if empty(glob('~/.config/nvim/autoload/plug.vim'))
|
||||||
|
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
|
||||||
|
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
"autocmd VimEnter * PlugInstall
|
||||||
|
"autocmd VimEnter * PlugInstall | source $MYVIMRC
|
||||||
|
endif
|
||||||
|
|
||||||
|
" ale before
|
||||||
|
let g:ale_completion_enabled = 1
|
||||||
|
let g:ale_completion_autoimport = 1
|
||||||
|
|
||||||
|
call plug#begin('~/.config/nvim/autoload/plugged')
|
||||||
|
Plug 'dense-analysis/ale'
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
" ale
|
||||||
|
let b:ale_fixers = ['prettier', 'eslint']
|
||||||
|
let g:ale_fix_on_save = 1
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
" auto-install vim-plug
|
|
||||||
if empty(glob('~/.config/nvim/autoload/plug.vim'))
|
|
||||||
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
|
|
||||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
||||||
"autocmd VimEnter * PlugInstall
|
|
||||||
"autocmd VimEnter * PlugInstall | source $MYVIMRC
|
|
||||||
endif
|
|
||||||
|
|
||||||
" ale before
|
|
||||||
let g:ale_completion_enabled = 1
|
|
||||||
let g:ale_completion_autoimport = 1
|
|
||||||
|
|
||||||
call plug#begin('~/.config/nvim/autoload/plugged')
|
|
||||||
Plug 'dense-analysis/ale'
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
" ale
|
|
||||||
let b:ale_fixers = ['prettier', 'eslint']
|
|
||||||
let g:ale_fix_on_save = 1
|
|
Loading…
Add table
Reference in a new issue