diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-04 13:22:31 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-04 13:22:31 +0100 |
commit | 66fbfab34ff74fad6e2da45b8fb02d2df3712bb9 (patch) | |
tree | 744a1bff446e8982e40a4dfd93161e73ae058ee8 /.config/nvim | |
parent | Revert (diff) | |
download | dotfiles-bsd-66fbfab34ff74fad6e2da45b8fb02d2df3712bb9.tar.gz dotfiles-bsd-66fbfab34ff74fad6e2da45b8fb02d2df3712bb9.tar.bz2 dotfiles-bsd-66fbfab34ff74fad6e2da45b8fb02d2df3712bb9.tar.xz dotfiles-bsd-66fbfab34ff74fad6e2da45b8fb02d2df3712bb9.tar.zst dotfiles-bsd-66fbfab34ff74fad6e2da45b8fb02d2df3712bb9.zip |
Fat update
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/bindings.vim | 4 | ||||
-rw-r--r-- | .config/nvim/init.vim | 2 | ||||
-rw-r--r-- | .config/nvim/langs.vim | 8 | ||||
-rw-r--r-- | .config/nvim/plug-config/airline.vim | 8 | ||||
-rw-r--r-- | .config/nvim/plug.vim | 2 |
5 files changed, 19 insertions, 5 deletions
diff --git a/.config/nvim/bindings.vim b/.config/nvim/bindings.vim index 4e7d776..d6219b9 100644 --- a/.config/nvim/bindings.vim +++ b/.config/nvim/bindings.vim @@ -13,7 +13,7 @@ nnoremap <C-o> <C-w>o nnoremap <C-q> <C-w>q nnoremap <silent> <leader> :WhichKey '\'<CR> nnoremap <silent> <leader>b :Buffers<CR> -nnoremap <leader>d :w<CR>:bp<CR>:bd #<CR> +nnoremap <leader>d :bd<CR> nnoremap <silent> <leader>e :Files<CR> nnoremap <silent> <leader>ga :Ag<CR> nnoremap <leader>gg :Grep<Space> @@ -27,7 +27,7 @@ nnoremap <leader>w :w<CR> nnoremap <leader>x :w<CR>:bp<CR>:bd #<CR> let g:which_key_map.b = 'buffers' let g:which_key_map.c = { 'name': '+nerd-commenter' } -let g:which_key_map.d = 'write-and-close-buffer' +let g:which_key_map.d = 'close-buffer' let g:which_key_map.e = 'files' let g:which_key_map.g = { 'name': '+grep' } let g:which_key_map.g.a = 'the_silver_searcher' diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index e810fe3..4c7d5c2 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -20,7 +20,7 @@ source /home/jozan/.config/nvim/bindings.vim source /home/jozan/.config/nvim/sidebars.vim source /home/jozan/.config/nvim/langs.vim source /home/jozan/.config/nvim/plug-config/airline.vim -" source /home/jozan/.config/nvim/plug-config/coc.vim +source /home/jozan/.config/nvim/plug-config/coc.vim source /home/jozan/.config/nvim/plug-config/floaterm.vim source /home/jozan/.config/nvim/plug-config/nerd-commenter.vim source /home/jozan/.config/nvim/plug-config/org.vim diff --git a/.config/nvim/langs.vim b/.config/nvim/langs.vim index cc441cd..26b96d7 100644 --- a/.config/nvim/langs.vim +++ b/.config/nvim/langs.vim @@ -1,5 +1,13 @@ let g:asmsyntax = 'asm' let perl_include_pod = 1 +autocmd BufNewFile,BufRead *.h + \ set filetype=c +autocmd BufNewFile,BufRead *.c + \ set filetype=c +autocmd BufNewFile,BufRead *.cxx + \ set filetype=cpp +autocmd BufNewFile,BufRead *.hxx + \ set filetype=cpp autocmd FileType fish \ compiler fish autocmd FileType perl diff --git a/.config/nvim/plug-config/airline.vim b/.config/nvim/plug-config/airline.vim index 7fe7088..7ccc408 100644 --- a/.config/nvim/plug-config/airline.vim +++ b/.config/nvim/plug-config/airline.vim @@ -6,6 +6,12 @@ let g:airline_theme = 'base16_default' let g:airline_powerline_fonts = 1 let g:airline_symbols_ascii = 1 let g:airline#parts#ffenc#skip_expected_string = 'utf-8[unix]' +let g:airline#extensions#whitespace#enabled = 1 +let g:airline#extensions#whitespace#checks = + \ [ 'indent', 'trailing', 'long', 'mixed-indent-file', 'conflicts' ] +let g:airline#extensions#whitespace#max_lines = 20000 +let g:airline#extensions#whitespace#show_message = 1 +let g:airline#extensions#whitespace#mixed_indent_algo = 2 let g:airline#extensions#battery#enabled = 1 let g:airline#extensions#coc#enabled = 1 let airline#extensions#coc#warning_symbol = 'W:' @@ -17,4 +23,4 @@ let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#buffer_idx_mode = 1 " let g:airline#extensions#tabline#left_sep = ' ' " let g:airline#extensions#tabline#left_alt_sep = '|' -let g:airline#extensions#tabline#formatter = 'unique_tail_improved' +let g:airline#extensions#tabline#formatter = 'default' diff --git a/.config/nvim/plug.vim b/.config/nvim/plug.vim index 543058a..38e8d08 100644 --- a/.config/nvim/plug.vim +++ b/.config/nvim/plug.vim @@ -14,7 +14,7 @@ Plug 'mg979/vim-visual-multi' Plug 'mhinz/vim-signify' Plug 'mhinz/vim-startify' Plug 'morhetz/gruvbox' -" Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} +Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} Plug 'paretje/nvim-man' Plug 'preservim/tagbar' Plug 'preservim/nerdcommenter' |