Try some autocompletion methods and fix env.zsh
This commit is contained in:
parent
16b11af3d8
commit
a7b63eb4fb
2 changed files with 24 additions and 18 deletions
36
vimcfg.vim
36
vimcfg.vim
|
@ -7,7 +7,7 @@ call plug#begin('~/.vim/plugged')
|
|||
" Ale: Runs fast and works well.
|
||||
Plug 'dense-analysis/ale'
|
||||
|
||||
" deoplete: Ale wants this for code completeopt
|
||||
" deoplete: Ale wants this for code completeopt (fucking dependency hell)
|
||||
Plug 'Shougo/deoplete.nvim'
|
||||
Plug 'roxma/nvim-yarp'
|
||||
Plug 'roxma/vim-hug-neovim-rpc'
|
||||
|
@ -17,14 +17,13 @@ Plug 'phpactor/phpactor' , {'do': 'composer install', 'for': 'php'}
|
|||
Plug 'kristijanhusak/deoplete-phpactor'
|
||||
|
||||
" Better HTML PHP support
|
||||
Plug 'captbaritone/better-indent-support-for-php-with-html'
|
||||
Plug 'beanworks/vim-phpfmt'
|
||||
|
||||
" Guten Tag: Automatically generates ctags (variable names, function, classes)
|
||||
Plug 'ludovicchabant/vim-gutentags'
|
||||
|
||||
" php.vim: PHP syntax higlighting and indent
|
||||
Plug 'StanAngeloff/php.vim'
|
||||
Plug '2072/vim-syntax-for-PHP'
|
||||
|
||||
" PHP Namespace: Helps to keep track of namespaces and autcompletes them
|
||||
Plug 'arnaud-lb/vim-php-namespace', {'for': 'php'}
|
||||
|
@ -38,23 +37,20 @@ Plug 'vim-vdebug/vdebug'
|
|||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||
|
||||
" BBye: Exits the buffer without murdering the window
|
||||
"Plug 'moll/vim-bbye'
|
||||
|
||||
" MINIBUFXPL: A nice buffer explorer
|
||||
Plug 'fholgado/minibufexpl.vim'
|
||||
|
||||
" Airline: Some file infos
|
||||
Plug 'vim-airline/vim-airline'
|
||||
|
||||
"" AutoComplPop: Open the popup menu for autocompletion
|
||||
"Plug 'vim-scripts/AutoComplPop'
|
||||
|
||||
"" Indexing
|
||||
" ctrlp.vim: Quickly find files by name without navigating
|
||||
Plug 'kien/ctrlp.vim'
|
||||
|
||||
" fzf.vim: Quickly finds file content
|
||||
" Plug 'junegunn/fzf', { 'do': './install --bin' }
|
||||
" Plug 'junegunn/fzf.vim'
|
||||
|
||||
" Ferret: Quickly finds file content
|
||||
Plug 'wincent/ferret'
|
||||
|
||||
"" Input optimization
|
||||
|
@ -75,27 +71,37 @@ set autoindent
|
|||
"" NERDTree config
|
||||
" Autostart NERDTree on start
|
||||
autocmd vimenter * NERDTree | wincmd w
|
||||
let NERDTreeShowHidden=1
|
||||
|
||||
" Close vim if the only window left open is a NERDTree
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
|
||||
"" ALE config
|
||||
" Define fixers
|
||||
let g:ale_fixers = {
|
||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||
\ 'javascript': ['eslint'],
|
||||
\ 'php': ['phpcbf']
|
||||
\}
|
||||
|
||||
" Run linter on save
|
||||
let g:ale_fix_on_save = 1
|
||||
|
||||
" Enable ale completion
|
||||
"let g:ale_completion_enabled = 1
|
||||
|
||||
" Overwrite omnicomplete function with ale
|
||||
"set omnifunc=ale#completion#OmniFunc
|
||||
|
||||
" Enable deoplete for Ale
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
let g:deoplete#ignore_sources = get(g:, 'deoplete#ignore_sources', {})
|
||||
let g:deoplete#ignore_sources.php = ['omni']
|
||||
let g:deoplete#ignore_sources = ['omni']
|
||||
|
||||
"" Gutentags
|
||||
" Auto generate ctags on startup
|
||||
autocmd! User vim-gutentags call gutentags#setup_gutentags()
|
||||
|
||||
"" AutoComplPop
|
||||
" Always show auto completion
|
||||
let g:acp_behaviorKeywordLength = 1
|
||||
|
||||
"" PHP
|
||||
" PHP Namespace: Automatically use fully qualified name
|
||||
function! IPhpExpandClass()
|
||||
|
|
|
@ -4,8 +4,8 @@ export MAILCHECK=1
|
|||
export GOPATH=$HOME/workspace/gospace
|
||||
export FONTCONFIG_PATH=/etc/fonts
|
||||
|
||||
export UID=$(id -u)
|
||||
export GID=$(id -g)
|
||||
#export UID=$(id -u)
|
||||
#export GID=$(id -g)
|
||||
|
||||
export PATH=$PATH:~/.local/bin:~/bin:
|
||||
export PATH=$PATH:$(composer global config bin-dir --absolute -q)
|
||||
#export PATH=$PATH:$(composer global config bin-dir --absolute -q)
|
||||
|
|
Loading…
Reference in a new issue