jaspernbrouwer / powerline-gitstatus

A Powerline segment for showing the status of a Git working copy
MIT License
383 stars 52 forks source link

branch and symbols are not shown #27

Closed DineshReddyK closed 5 years ago

DineshReddyK commented 5 years ago

Hi,

Powerline gitstatus is not showing the branch name/commit/changed files/stashed file. Here is my config.json

$ cat ~/.config/powerline/config.json 
{
    "ext": {
        "shell": {
            "theme": "default_leftonly"
        }
    }
}
cat ~/.config/powerline/themes/shell/default_leftonly.json 
{
        "segments": {
                "left": [
                        {
                                "function": "powerline.segments.common.env.user",
                                "priority": 30
                        },
                        {
                                "function": "powerline.segments.common.env.virtualenv",
                                "priority": 50
                        },
                        {
                                "function": "powerline.segments.shell.cwd",
                                "args": {
                                  "dir_limit_depth": 7
                                },
                                "priority": 10
                        },
                        {
                                "function": "powerline_gitstatus.gitstatus",
                                "priority": 40
                        }
                ],
        "right": [
        ]
        }
}

when I run powerline-lint it throws following error at the end though I have gitstatus installed. (/usr/lib/python2.7/site-packages/powerline_gitstatus does exist).

What am I doing wrong?


Error while checking segments (key /segments/left/list item 3/function)
  in "/home/fedora/.config/powerline/themes/shell/default_leftonly.json", line 20, column 38:
     ... function": "powerline_gitstatus.gitstatus",
                                         ^
failed to import module powerline_gitstatus
  in "/home/fedora/.config/powerline/themes/shell/default_leftonly.json", line 20, column 18:
    >--->--->--->---"function": "powerline_gitstatus.gitstatus",