nvim: go, new theme, easy-align

This commit is contained in:
Sijmen 2020-05-07 04:04:47 +02:00
parent 181178a083
commit 1525224696
Signed by: vijfhoek
GPG key ID: DAF7821E067D9C48

View file

@ -6,39 +6,35 @@ Plug 'prabirshrestha/async.vim'
Plug 'tweekmonster/startuptime.vim'
" UI
"Plug 'airblade/vim-gitgutter' " currently broken :(
Plug 'Asheq/close-buffers.vim'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'haya14busa/incsearch.vim'
Plug 'mhinz/vim-startify'
Plug 'ryanoasis/vim-devicons'
Plug 'scrooloose/nerdtree'
Plug 'tomasiser/vim-code-dark'
Plug 'airblade/vim-gitgutter' " A Vim plugin which shows a git diff in the sign column.
Plug 'Asheq/close-buffers.vim' " This plug-in allows you to quickly bdelete several buffers at once.
Plug 'ctrlpvim/ctrlp.vim' " Full path fuzzy file, buffer, mru, tag, ... finder for Vim.
Plug 'haya14busa/incsearch.vim' " incsearch.vim incrementally highlights ALL pattern matches unlike default 'incsearch'.
Plug 'mhinz/vim-startify' " This plugin provides a start screen for Vim and Neovim.
Plug 'ryanoasis/vim-devicons' " Adds file type icons to Vim plugins
Plug 'scrooloose/nerdtree' " A tree explorer plugin for vim.
Plug 'nightsense/snow'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'Yggdroot/indentLine'
" Programming helpers
"Plug 'deoplete-plugins/deoplete-clang'
"Plug 'guns/xterm-color-table.vim'
"Plug 'prabirshrestha/vim-lsp'
"Plug 'scrooloose/syntastic'
"Plug 'Shougo/neoinclude.vim'
Plug 'bkad/CamelCaseMotion'
Plug 'Chiel92/vim-autoformat'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'bkad/CamelCaseMotion'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'dense-analysis/ale'
Plug 'deoplete-plugins/deoplete-jedi'
Plug 'easymotion/vim-easymotion'
Plug 'godlygeek/tabular'
Plug 'sebastianmarkow/deoplete-rust'
Plug 'junegunn/vim-easy-align'
Plug 'keith/swift.vim'
"Plug 'majutsushi/tagbar'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'majutsushi/tagbar'
Plug 'sebastianmarkow/deoplete-rust'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-git'
Plug 'tpope/vim-markdown'
Plug 'tpope/vim-sleuth'
Plug 'tpope/vim-speeddating'
Plug 'tpope/vim-surround'
@ -67,6 +63,7 @@ Plug 'tikhomirov/vim-glsl'
Plug 'udalov/kotlin-vim'
Plug 'ziglang/zig.vim'
Plug 'jceb/vim-orgmode'
Plug 'fatih/vim-go'
call plug#end()
@ -99,7 +96,7 @@ if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_theme = 'codedark'
"let g:airline_theme = 'codedark'
let g:airline_left_sep = ''
let g:airline_left_alt_sep = '| '
let g:airline_right_sep = ''
@ -118,7 +115,8 @@ let g:airline#extensions#ale#enabled = 1
" Syntax coloring
syntax enable
set synmaxcol=1024
colorscheme codedark
set background=dark
colorscheme snow
hi WarningMsg ctermbg=0
" indentLine
@ -181,7 +179,7 @@ set undolevels=1000
set undoreload=10000
" Completion
set completeopt=menu,menuone,longest
set completeopt=menu,menuone,longest,noselect
" Open files at where they were closed.
if has("autocmd")
@ -231,16 +229,22 @@ autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isT
""" Deoplete
let g:deoplete#enable_at_startup = 1
call deoplete#custom#option('omni_patterns', { 'go': '[^. *\t]\.\w*' })
""" ale
let g:ale_linters = { 'python': ['flake8', 'mypy'] }
let g:ale_linters = { 'python': ['flake8', 'mypy'], 'go': ['gopls'], 'cpp': ['clangcheck'] }
let g:ale_fixers = {
\ 'python': ['black'],
\ 'cpp': ['clang-format'],
\ 'javascript': ['eslint', 'prettier'],
\ 'yaml': ['prettier'],
\ 'go': ['gofmt', 'goimports'],
\ }
let g:ale_python_flake8_options='--max-line-length=88'
let g:ale_python_mypy_options='--ignore-missing-imports'
let g:ale_c_parse_compile_commands = 1
let g:ale_c_build_dir_names = ['build', 'bin', '.']
let g:ale_fixers = { 'python': ['black'], 'cpp': ['clang-format'], 'javascript': ['eslint', 'prettier'], 'yaml': ['prettier'] }
let g:ale_linters = { 'cpp': ['clangcheck'] }
let g:ale_completion_enabled = 1
"let g:ale_completion_enabled = 1
set omnifunc=ale#completion#OmniFunc
" Python
@ -287,3 +291,11 @@ set path=$PWD/**
set wrap linebreak showbreak=↳\ " keep whitespace
set breakindent breakindentopt=shift:4
let g:ctrlp_map = '<c-p>'
""" vim-easy-align
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
""" vim-go
let g:go_imports_autosave = 1
let g:go_auto_type_info = 1