项目作者: thefish

项目描述 :
neovim config for go and php
高级语言: Vim script
项目地址: git://github.com/thefish/neovim-go-php.git
创建时间: 2018-11-09T15:49:47Z
项目社区:https://github.com/thefish/neovim-go-php

开源协议:

下载


neovim golang and php config

This is an early aplha - but the time to move from vim 7.x has come.

  1. Requirements:
  2. - neovim >= 0.3.*
  3. - ack-grep
  4. - fzf (tries to be installed automatically)
  5. What fails:
  6. - Deoplete on PHP works strange in some cases
  7. - Python, CPP support missing

Install

  1. git clone https://github.com/thefish/neovim-go-php.git ~/.config/nvim

After than run

  1. ~/.config/nvim/vim-plug.sh

then

  1. vi
  2. :PlugInstall

Setup

Rebuild vim-polyglot

  1. cd ~/.config/nvim/plugged/vim-polyglot
  2. ./build

then

  1. vi
  2. :GoInstallBinaries

Run

To start deopleting - create file .phpcd.vim ith content like this:

  1. let g:phpcd_autoload_path='vendor/autoload.php'

file contains path to autoload files generated by composer.

Tips & Tricks

  • Find usages - Shift+3 on word, then :Ack
  • Find file in project - :NERDTreeFind while file is open
  • Disable tag generation - :> .notags in project root folder