Shuffle nvim config and add py and rs ftplugin
This commit is contained in:
parent
605243f4d5
commit
44dba6ec58
3 changed files with 102 additions and 57 deletions
23
.config/nvim/ftplugin/python.vim
Normal file
23
.config/nvim/ftplugin/python.vim
Normal file
|
@ -0,0 +1,23 @@
|
|||
set textwidth=79
|
||||
colorscheme monotone
|
||||
|
||||
let b:ale_linters=['mypy', 'pyls', 'pylint']
|
||||
" Fix syntax with autopep8.
|
||||
let b:ale_fixers=['autopep8']
|
||||
let g:ale_fix_on_save=1
|
||||
" Use .venv as a global default
|
||||
let g:ale_virtualenv_dir_names=['.venv']
|
||||
|
||||
" disable autocompletion, cause we use deoplete for completion
|
||||
let g:jedi#completions_enabled=0
|
||||
" open the go-to function in split, not another buffer
|
||||
let g:jedi#use_splits_not_buffers="right"
|
||||
|
||||
let g:deoplete#enable_at_startup=1
|
||||
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
|
||||
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
|
||||
|
||||
" Doesn't read this from init.vim, so add it here again
|
||||
highlight MatchParen cterm=bold ctermbg=DarkCyan ctermfg=none
|
||||
highlight ALEWarning ctermbg=Yellow ctermfg=Black guibg=Yellow guifg=Black cterm=Underline
|
||||
highlight ALEError ctermbg=Red ctermfg=Black guibg=Red guifg=Black cterm=Underline
|
10
.config/nvim/ftplugin/rust.vim
Normal file
10
.config/nvim/ftplugin/rust.vim
Normal file
|
@ -0,0 +1,10 @@
|
|||
colorscheme monotone
|
||||
|
||||
let b:ale_linters=['analyzer']
|
||||
" Fix syntax with rustfmt.
|
||||
let b:ale_fixers=['rustfmt']
|
||||
let g:ale_fix_on_save=1
|
||||
let g:ale_rust_cargo_use_clippy = 1
|
||||
|
||||
" 'colorscheme' overrides highlights, so add it here again
|
||||
highlight MatchParen cterm=bold ctermbg=DarkCyan ctermfg=none
|
Loading…
Add table
Add a link
Reference in a new issue