Git Product home page Git Product logo

rephp.nvim's Introduction

rephp.nvim - Read and Evaluate PHP

rephp

Description

rephp.nvim is a python3 plugin for neovim, which reads different regions of your code, evaluates it and echo (if there are any outputs). The idea is inspired by great REPLs like Clojures Cider. This plugin tries to deliver a similar feeling, but in a far more basic fashion.

What is implemented so far

✓ Evaluate current line
✓ Evaluate all selected lines
✘ Evaluate the current buffer

Requirements

Neovim needs to be installed with if_python3. If :echo has("python3") returns 1, then you're good to go.

Otherwise you can enable the python3 interface with pip:

pip3 install neovim

Installation

vim-plug

Plug 'snowiow/rephp.nvim', {'do': ':UpdateRemotePlugins'}

Configuration

The best way to use this plugin, is to create two new keybindings for the normal and visual mode calls:

nnoremap <leader>l :call RePhp('n')<CR>
vnoremap <leader>l :<C-u>call RePhp('v')<CR>

Here you can set <leader>l to any other shortcut you like.

If the PHP executable is not in your path, you also need to give the real path to the plugin

let g:rephp_executable = '/usr/bin/php'
Where the string after the equal sign should be the full path to your php executable.

rephp.nvim's People

Contributors

snowiow avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.