Comments (6)
You should try to reproduce with a minimal vimrc.
from eleline.vim.
Still having no idea. 😭
from eleline.vim.
I reproduced with a very minimal vimrc. I was just using minpac
plugin manager to install eleline
. The branch name was still not shown.
Then I did some further investigation. Please take a look at this piece of code in eleline.vim
(https://github.com/liuchengxu/eleline.vim/blob/master/plugin/eleline.vim#L94)
if !exists('*FugitiveExtractGitDir')
return ''
endif
I added echom "aaaa"
right above the return ''
and in neovim I could see the output aaaa
, which means the running fell into this if
block, and it returns an empty string eventually. I am not sure whether or not this is the reason leading to the issue.
UPDATE:
I didn't install vim-fugitive
because as the README said it is not required if I am using the latest neovim, right? However, based on the code itself, it seems that vim-fugitive
is necessary. If vim supports the job feature, it will get the branch name asynchronously but vim-fugitive
plugin should be installed no matter what, right?
Thank you very much.
from eleline.vim.
Ok, the README is not very clear, eleline.vim will use the job feature to retrieve the git branch info when in a git repo, but the detection of the git directory is still dependent on the API of vim-fugitive.
from eleline.vim.
Okay, so vim-fugitive is definitely required. I think it'd better update the README to make it clearer.
Thank you for your help.
from eleline.vim.
Feel free to send a PR for adding such a note.
from eleline.vim.
Related Issues (20)
- buffer 信息显示 HOT 5
- 能不能在状态栏显示当前函数呀 HOT 2
- 请问eleline支持更换主题么? HOT 1
- 保存文件退出 (:wq) 报错 HOT 3
- 显示git分支信息 HOT 1
- Statusline on inactive window is still colorful (not getting gray) HOT 1
- 在nvim和vista一起用有bug HOT 1
- It does not show git branch name HOT 4
- Getting an error for non git code I guess HOT 1
- How to update color schema to match my current vim theme HOT 2
- nvim退出swap文件报错
- Weird "0"s when setting inccommand option HOT 4
- Error
- No gitblame & coc-diagnostic HOT 1
- bufferline support? HOT 1
- How to use and customize eleline without forking the repo? HOT 1
- `coc#status` error HOT 3
- statusline for quickfix window does not work
- Throw exception after nvim-lsp-installer install any lsp server HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eleline.vim.