ahmedash95/deep-symbols 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ahmedash95/deep-symbols

最新稳定版本:0.0.4

Composer 安装命令:

composer require ahmedash95/deep-symbols

包简介

README 文档

README

A simple neovim plugin to display document symbols with inherited members.

Problem

The current LSP document symbols does not consider inherted members. which is something I used to have with PHPStorm and had saved me alot navigating the code. and as I'm moving to Neovim. I missed that feature and after some looking and searching I could not find any good replacement. so I decided to make it myself.

the project scope should and always will be small. focusing only on PHP as it's my primary language. and would just change to serve future versions of PHP.

Prerequisites

Preview

Let's say in your project you have 2 models Admin.php and User.php

class User
{
    public function getName() {
        return 'John';
    }
}

class Admin extends User
{
    public function getAdminRole() {
        return 'supervisor';
    }
}

With this plugin, it would show you all the members and inherited members of the class you are currently in.

demo.mov

Install

First you need to install deep-symbol globally from your composer

composer global require ahmedash95/deep-symbols

Make sure that your global composer directory is inside of your PATH environment variable. Simply add this directory to your PATH in your ~/.bash_profile (or ~/.bashrc) like this:

export PATH=~/.composer/vendor/bin:$PATH

once installed you can verifiy if its working by opening a new terminal session and type

$ deep-symbols

Plugin

Using vim-plug

Plug 'ahmedash95/deep-symbols'

Using packer.nvim

use 'ahmedash95/deep-symbols'

Usage

you can run it with the command

:lua require("deepsymbols").get_symbols()

-- or mapping

vim.keymap.set('n', '<leader>o', ':lua require("deepsymbols").get_symbols()<CR>')

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固