Try some autocompletion methods and fix env.zsh

This commit is contained in:
Leon Grünewald 2020-02-21 15:00:02 +01:00
parent 16b11af3d8
commit a7b63eb4fb
2 changed files with 24 additions and 18 deletions

View file

@ -7,7 +7,7 @@ call plug#begin('~/.vim/plugged')
" Ale: Runs fast and works well. " Ale: Runs fast and works well.
Plug 'dense-analysis/ale' 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 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp' Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc' Plug 'roxma/vim-hug-neovim-rpc'
@ -17,14 +17,13 @@ Plug 'phpactor/phpactor' , {'do': 'composer install', 'for': 'php'}
Plug 'kristijanhusak/deoplete-phpactor' Plug 'kristijanhusak/deoplete-phpactor'
" Better HTML PHP support " 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) " Guten Tag: Automatically generates ctags (variable names, function, classes)
Plug 'ludovicchabant/vim-gutentags' Plug 'ludovicchabant/vim-gutentags'
" php.vim: PHP syntax higlighting and indent " php.vim: PHP syntax higlighting and indent
Plug 'StanAngeloff/php.vim' Plug 'StanAngeloff/php.vim'
Plug '2072/vim-syntax-for-PHP'
" PHP Namespace: Helps to keep track of namespaces and autcompletes them " PHP Namespace: Helps to keep track of namespaces and autcompletes them
Plug 'arnaud-lb/vim-php-namespace', {'for': 'php'} Plug 'arnaud-lb/vim-php-namespace', {'for': 'php'}
@ -38,23 +37,20 @@ Plug 'vim-vdebug/vdebug'
Plug 'scrooloose/nerdtree' Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'Xuyuanp/nerdtree-git-plugin'
" BBye: Exits the buffer without murdering the window
"Plug 'moll/vim-bbye'
" MINIBUFXPL: A nice buffer explorer " MINIBUFXPL: A nice buffer explorer
Plug 'fholgado/minibufexpl.vim' Plug 'fholgado/minibufexpl.vim'
" Airline: Some file infos " Airline: Some file infos
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
"" AutoComplPop: Open the popup menu for autocompletion
"Plug 'vim-scripts/AutoComplPop'
"" Indexing "" Indexing
" ctrlp.vim: Quickly find files by name without navigating " ctrlp.vim: Quickly find files by name without navigating
Plug 'kien/ctrlp.vim' Plug 'kien/ctrlp.vim'
" fzf.vim: Quickly finds file content " Ferret: Quickly finds file content
" Plug 'junegunn/fzf', { 'do': './install --bin' }
" Plug 'junegunn/fzf.vim'
Plug 'wincent/ferret' Plug 'wincent/ferret'
"" Input optimization "" Input optimization
@ -75,27 +71,37 @@ set autoindent
"" NERDTree config "" NERDTree config
" Autostart NERDTree on start " Autostart NERDTree on start
autocmd vimenter * NERDTree | wincmd w autocmd vimenter * NERDTree | wincmd w
let NERDTreeShowHidden=1
" Close vim if the only window left open is a NERDTree " Close vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
"" ALE config "" ALE config
" Define fixers
let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'javascript': ['eslint'],
\ 'php': ['phpcbf']
\}
" Run linter on save " Run linter on save
let g:ale_fix_on_save = 1 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 " Enable deoplete for Ale
let g:deoplete#enable_at_startup = 1 let g:deoplete#enable_at_startup = 1
let g:deoplete#ignore_sources = get(g:, 'deoplete#ignore_sources', {}) let g:deoplete#ignore_sources = get(g:, 'deoplete#ignore_sources', {})
let g:deoplete#ignore_sources.php = ['omni'] let g:deoplete#ignore_sources = ['omni']
"" Gutentags "" Gutentags
" Auto generate ctags on startup " Auto generate ctags on startup
autocmd! User vim-gutentags call gutentags#setup_gutentags() autocmd! User vim-gutentags call gutentags#setup_gutentags()
"" AutoComplPop
" Always show auto completion
let g:acp_behaviorKeywordLength = 1
"" PHP "" PHP
" PHP Namespace: Automatically use fully qualified name " PHP Namespace: Automatically use fully qualified name
function! IPhpExpandClass() function! IPhpExpandClass()

View file

@ -4,8 +4,8 @@ export MAILCHECK=1
export GOPATH=$HOME/workspace/gospace export GOPATH=$HOME/workspace/gospace
export FONTCONFIG_PATH=/etc/fonts export FONTCONFIG_PATH=/etc/fonts
export UID=$(id -u) #export UID=$(id -u)
export GID=$(id -g) #export GID=$(id -g)
export PATH=$PATH:~/.local/bin:~/bin: 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)