vim plugin start, ale
This commit is contained in:
parent
825e1859f4
commit
6f56f025a7
3 changed files with 24 additions and 0 deletions
|
@ -7,6 +7,8 @@ Vim alternative `nvim`.
|
|||
## Setup
|
||||
|
||||
```bash
|
||||
mkdir ~/.config/nvim/vim-plug
|
||||
sudo pacman -S neovim
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -46,3 +46,6 @@ nnoremap <S-Tab> :bprev<CR>
|
|||
nnoremap <Esc><Esc> :bd<CR>
|
||||
"" Shortcut to reopen closed buffer
|
||||
nmap <Leader><Leader> <c-^>
|
||||
|
||||
" source plugins
|
||||
source ./plugins.vim
|
||||
|
|
19
nvim/plugins.vim
Normal file
19
nvim/plugins.vim
Normal file
|
@ -0,0 +1,19 @@
|
|||
" 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