Update nvim config
This commit is contained in:
parent
e8702f963d
commit
455a7862f8
3
.config/flake8
Normal file
3
.config/flake8
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[flake8]
|
||||||
|
max-line-length = 88
|
||||||
|
extend-ignore = E203
|
@ -65,3 +65,11 @@ map k gk
|
|||||||
let g:SuperTabMappingTabLiteral = '<a-tab>'
|
let g:SuperTabMappingTabLiteral = '<a-tab>'
|
||||||
let g:SuperTabDefaultCompletionType = 'context'
|
let g:SuperTabDefaultCompletionType = 'context'
|
||||||
let g:SuperTabContextDefaultCompletionType = '<c-n>'
|
let g:SuperTabContextDefaultCompletionType = '<c-n>'
|
||||||
|
|
||||||
|
" neosnippets
|
||||||
|
smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
|
||||||
|
\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
|
||||||
|
|
||||||
|
imap <C-k> <Plug>(neosnippet_expand_or_jump)
|
||||||
|
smap <C-k> <Plug>(neosnippet_expand_or_jump)
|
||||||
|
xmap <C-k> <Plug>(neosnippet_expand_target)
|
||||||
|
@ -49,8 +49,8 @@ hi DiffText ctermfg=0 ctermbg=4
|
|||||||
hi Folded ctermbg=8
|
hi Folded ctermbg=8
|
||||||
hi FoldColumn ctermbg=8
|
hi FoldColumn ctermbg=8
|
||||||
|
|
||||||
hi Pmenu ctermfg=4 ctermbg=233
|
hi Pmenu ctermfg=12 ctermbg=234
|
||||||
hi PmenuSel ctermfg=4 ctermbg=8
|
hi PmenuSel ctermfg=12 ctermbg=8
|
||||||
hi PmenuThumb ctermfg=8 ctermbg=8
|
hi PmenuThumb ctermfg=8 ctermbg=8
|
||||||
hi PmenuSbar ctermfg=0 ctermbg=0
|
hi PmenuSbar ctermfg=0 ctermbg=0
|
||||||
hi StatusLineNC ctermfg=8 ctermbg=NONE cterm=bold
|
hi StatusLineNC ctermfg=8 ctermbg=NONE cterm=bold
|
||||||
|
@ -49,8 +49,8 @@ set wildignore+=*.doc,*.pdf,*.cbr,*.cbz
|
|||||||
set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz,*.kgb
|
set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz,*.kgb
|
||||||
set wildignore+=*.swp,.lock,.DS_Store,._*
|
set wildignore+=*.swp,.lock,.DS_Store,._*
|
||||||
|
|
||||||
highlight OverLength cterm=underline
|
" highlight OverLength cterm=underline
|
||||||
match OverLength /\%81v.\+/
|
" match OverLength /\%81v.\+/
|
||||||
|
|
||||||
" Restore cursor position
|
" Restore cursor position
|
||||||
function! ResCur()
|
function! ResCur()
|
||||||
@ -71,6 +71,7 @@ let g:python_host_prog = '/usr/bin/python2'
|
|||||||
" Language-specific
|
" Language-specific
|
||||||
augroup langindentation
|
augroup langindentation
|
||||||
autocmd Filetype c setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
autocmd Filetype c setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||||
|
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
|
||||||
autocmd Filetype cpp setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
autocmd Filetype cpp setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||||
autocmd Filetype css setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
autocmd Filetype css setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||||
autocmd Filetype javascript setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
autocmd Filetype javascript setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||||
|
@ -20,6 +20,7 @@ call plug#begin('~/.config/nvim/bundle')
|
|||||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
Plug 'tbodt/deoplete-tabnine', { 'do': './install.sh' }
|
Plug 'tbodt/deoplete-tabnine', { 'do': './install.sh' }
|
||||||
Plug 'Shougo/deoplete-clangx'
|
Plug 'Shougo/deoplete-clangx'
|
||||||
|
Plug 'deoplete-plugins/deoplete-jedi'
|
||||||
Plug 'deoplete-plugins/deoplete-zsh'
|
Plug 'deoplete-plugins/deoplete-zsh'
|
||||||
Plug 'prabirshrestha/async.vim'
|
Plug 'prabirshrestha/async.vim'
|
||||||
Plug 'prabirshrestha/asyncomplete.vim'
|
Plug 'prabirshrestha/asyncomplete.vim'
|
||||||
@ -30,8 +31,9 @@ call plug#begin('~/.config/nvim/bundle')
|
|||||||
Plug 'ryanolsonx/vim-lsp-javascript'
|
Plug 'ryanolsonx/vim-lsp-javascript'
|
||||||
|
|
||||||
Plug 'ervandew/supertab'
|
Plug 'ervandew/supertab'
|
||||||
Plug 'SirVer/ultisnips'
|
|
||||||
Plug 'honza/vim-snippets'
|
Plug 'honza/vim-snippets'
|
||||||
|
Plug 'Shougo/neosnippet.vim'
|
||||||
|
Plug 'Shougo/neosnippet-snippets'
|
||||||
|
|
||||||
Plug 'mattn/emmet-vim'
|
Plug 'mattn/emmet-vim'
|
||||||
|
|
||||||
@ -86,7 +88,7 @@ let g:ale_fixers = {
|
|||||||
\ 'javascript': ['prettier'],
|
\ 'javascript': ['prettier'],
|
||||||
\ 'json': ['prettier'],
|
\ 'json': ['prettier'],
|
||||||
\ 'php': ['prettier'],
|
\ 'php': ['prettier'],
|
||||||
\ 'python': ['autopep8', 'isort', 'black', 'add_blank_lines_for_python_control_statements'],
|
\ 'python': ['black'],
|
||||||
\ 'scss': ['prettier'],
|
\ 'scss': ['prettier'],
|
||||||
\ 'yaml': ['prettier'],
|
\ 'yaml': ['prettier'],
|
||||||
\}
|
\}
|
||||||
@ -134,16 +136,16 @@ call deoplete#custom#source('zsh', 'filetypes', ['sh', 'zsh'])
|
|||||||
call deoplete#custom#option('smart_case', v:false)
|
call deoplete#custom#option('smart_case', v:false)
|
||||||
|
|
||||||
" For python language server
|
" For python language server
|
||||||
if (executable('pyls'))
|
" if (executable('pyls'))
|
||||||
augroup LspPython
|
" augroup LspPython
|
||||||
autocmd!
|
" autocmd!
|
||||||
autocmd User lsp_setup call lsp#register_server({
|
" autocmd User lsp_setup call lsp#register_server({
|
||||||
\ 'name': 'pyls',
|
" \ 'name': 'pyls',
|
||||||
\ 'cmd': {server_info->['pyls']},
|
" \ 'cmd': {server_info->['pyls']},
|
||||||
\ 'whitelist': ['python']
|
" \ 'whitelist': ['python']
|
||||||
\ })
|
" \ })
|
||||||
augroup END
|
" augroup END
|
||||||
endif
|
" endif
|
||||||
|
|
||||||
" for JS language server
|
" for JS language server
|
||||||
if (executable('typescript-language-server'))
|
if (executable('typescript-language-server'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user