From aa4abc7780ed86e404ebd1761ffd9114fce680e8 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 18 Mar 2020 17:36:05 +0100 Subject: Just a general sync --- .config/nvim/init.vim | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to '.config/nvim/init.vim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index c4d8784..0c767d9 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -77,15 +77,15 @@ set ruler set scroll=4 set sessionoptions-=options set shiftround -set shiftwidth=4 +set shiftwidth=8 set shortmess+=A set showbreak= set showmatch set sidescrolloff=3 set smartcase -set softtabstop=4 +set softtabstop=8 set suffixes+=.pyc -set tabstop=4 +set tabstop=8 set textwidth=100 set wildmenu set wildmode=list:longest,full @@ -98,7 +98,7 @@ nmap j gj nmap k gk nmap w :w nmap q :q -nmap b :BD +nmap a :BD nmap l :bn " TODO: Fix the following line nmap h :bp @@ -168,6 +168,12 @@ augroup VimDiff autocmd! autocmd VimEnter,FilterWritePre * if &diff | ALEDisable | endif augroup END +let g:ale_pattern_options = { +\ '\.c$': {'ale_linters': ['clangtidy'], 'ale_fixers': ['clang-format']}, +\ '\.h$': {'ale_linters': ['clangtidy'], 'ale_fixers': ['clang-format']}, +\ '\.asm$': {'ale_linters': [], 'ale_fixers': ['trim_whitespace']}, +\} +let g:ale_pattern_options_enabled = 1 " File explorer nnoremap n :NERDTreeToggle -- cgit v1.2.3