summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-07-14 19:45:58 +0200
committerGitHub <noreply@github.com>2021-07-14 19:45:58 +0200
commit22eaa3a8e75f980f96028d021320ca74f4a4f344 (patch)
tree6d0ff1506407377bc689790dd26754c8d041bc49 /vim
parentf64326101fd8a72768a8d09ebf9bbd8e96c78ca1 (diff)
Update .vimrc
Diffstat (limited to 'vim')
-rwxr-xr-xvim/.vimrc23
1 files changed, 15 insertions, 8 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index fd80910..d8c71b0 100755
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -1,6 +1,5 @@
autocmd! bufwritepost .vimrc source %
-let g:ale_disable_lsp = 1
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
@@ -19,13 +18,18 @@ Plugin 'neoclide/coc.nvim', {'branch': 'release'}
Plugin 'editorconfig/editorconfig-vim'
Plugin 'ap/vim-css-color'
Plugin 'Yggdroot/indentLine'
+Plugin 'jmcantrell/vim-virtualenv'
Plugin 'ryanoasis/vim-devicons'
Plugin 'edkolev/tmuxline.vim'
+Plugin 'google/vim-searchindex'
+
call vundle#end() " required
-set term=screen-256color
+syntax on
+colorscheme miramare
+
set clipboard=unnamed
set mouse=a " click with mouse
set wildmenu
@@ -76,6 +80,7 @@ let g:rust_clip_command = 'xclip -selection clipboard'
let g:fzf_preview_window = 'right:70%'
+let g:ale_disable_lsp = 1
let g:ale_fix_on_save = 1
let g:ale_sign_error = '🛑'
let g:ale_sign_warning = '⚠️'
@@ -87,14 +92,20 @@ let g:ale_open_list = 1
let g:ale_keep_list_window_open = 0
let g:ale_list_window_size = 3
-let b:ale_linters = ['flake8', 'pylint']
+let b:ale_linters = {
+\ 'python': ['flake8', 'pylint', 'mypy'],
+\ 'cpp': ['clang'],
+\ 'c': ['clang'],
+\}
+
let b:ale_fixers = {
\ 'python': ['black', 'isort'],
\ 'javascript': ['prettier'],
\ 'typescript': ['prettier'],
-\ 'sass': ['prettier'],
\ 'vue': ['prettier'],
\ 'html': ['prettier'],
+\ 'cpp': ['clang-format'],
+\ 'c': ['clang-format'],
\}
let g:airline_theme='onedark'
@@ -110,10 +121,6 @@ filetype plugin indent on
set nocompatible
set showcmd " show commands at bottom
-syntax on
-
-colorscheme miramare
-
augroup remember_folds
autocmd!