|
|
|
@ -2,9 +2,9 @@ set nocompatible
|
|
|
|
|
|
|
|
|
|
" Plugins -------------------------------------------------------------------{{{
|
|
|
|
|
" set the runtime path to include Vundle and initialize
|
|
|
|
|
set rtp+=~/.vim/bundle/Vundle.vim
|
|
|
|
|
|
|
|
|
|
call vundle#begin()
|
|
|
|
|
if !has('nvim')
|
|
|
|
|
set rtp+=~/.vim/bundle/Vundle.vim
|
|
|
|
|
call vundle#begin()
|
|
|
|
|
" let Vundle manage Vundle, required
|
|
|
|
|
Plugin 'VundleVim/Vundle.vim'
|
|
|
|
|
|
|
|
|
@ -51,7 +51,8 @@ call vundle#begin()
|
|
|
|
|
" Plugin 'ycm-core/YouCompleteMe'
|
|
|
|
|
" Plugin 'prabirshrestha/vim-lsp'
|
|
|
|
|
" Plugin 'mattn/vim-lsp-settings'
|
|
|
|
|
call vundle#end() " required
|
|
|
|
|
call vundle#end() " required
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" enable the filetype plugin
|
|
|
|
|
filetype plugin indent on
|
|
|
|
@ -230,7 +231,9 @@ if has("autocmd")
|
|
|
|
|
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
|
|
|
|
|
autocmd FileType python set omnifunc=pythoncomplete#Complete
|
|
|
|
|
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
|
|
|
|
|
if !has('nvim')
|
|
|
|
|
autocmd FileType rust set omnifunc=ale#completion#OmniFunc
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" causes VIM to enter the directory of the file being edited to simplify
|
|
|
|
|
" finding related files.
|
|
|
|
@ -400,7 +403,9 @@ let g:terminal_ansi_colors = [
|
|
|
|
|
\ '#ffffff'
|
|
|
|
|
\ ]
|
|
|
|
|
|
|
|
|
|
autocmd TerminalOpen * set nonu
|
|
|
|
|
if !has('nvim')
|
|
|
|
|
autocmd TerminalOpen * set nonu
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
highlight Terminal guibg='#0c0c0c'
|
|
|
|
|
highlight Terminal guifg='#cccccc'
|
|
|
|
@ -459,13 +464,15 @@ let g:SuperTabClosePreviewOnPopupClose = 1
|
|
|
|
|
" ---------------------------------------------------------------------------}}}
|
|
|
|
|
|
|
|
|
|
" ALE -----------------------------------------------------------------------{{{
|
|
|
|
|
let g:ale_linters = {'rust': ['analyzer']}
|
|
|
|
|
let g:ale_fixers = {'rust': ['rustfmt', 'trim_whitespace', 'remove_trailing_lines']}
|
|
|
|
|
let g:rustfmt_autosave = 1
|
|
|
|
|
let g:ale_rust_analyzer_executable = "/home/jorelli/analyzer-spy"
|
|
|
|
|
let g:ale_rust_cargo_use_clippy = executable('cargo-clippy')
|
|
|
|
|
let g:ale_completion_enabled = 1
|
|
|
|
|
set completeopt=menu,menuone,preview,noselect,noinsert
|
|
|
|
|
if !has('nvim')
|
|
|
|
|
let g:ale_linters = {'rust': ['analyzer']}
|
|
|
|
|
let g:ale_fixers = {'rust': ['rustfmt', 'trim_whitespace', 'remove_trailing_lines']}
|
|
|
|
|
let g:rustfmt_autosave = 1
|
|
|
|
|
let g:ale_rust_analyzer_executable = "/home/jorelli/analyzer-spy"
|
|
|
|
|
let g:ale_rust_cargo_use_clippy = executable('cargo-clippy')
|
|
|
|
|
let g:ale_completion_enabled = 1
|
|
|
|
|
set completeopt=menu,menuone,preview,noselect,noinsert
|
|
|
|
|
endif
|
|
|
|
|
" ---------------------------------------------------------------------------}}}
|
|
|
|
|
|
|
|
|
|
" CtrlP ---------------------------------------------------------------------{{{
|
|
|
|
|