lambdalisue / vim-fern-git-status Goto Github PK
View Code? Open in Web Editor NEW๐ฟ Add Git status badge integration on file:// scheme on fern.vim
License: MIT License
๐ฟ Add Git status badge integration on file:// scheme on fern.vim
License: MIT License
Hello,
By default fern-git-status will emit git status
type details, two characters inside square bracket taking up four spaces.
That is fine as a default.
But, I would like to use just a single Unicode character such as โ
or โ
to indicate dirty state. I don't want [ M]
in my file tree.
The g:fern_git_status#indexed_character
and g:fern_git_status#stained_character
flags are good, but they take up four spaces since square bracket and space will surround those characters. Single character symbol is my aim.
Is that possible now? If not, then I would request it as an enhancement request.
Many thanks, you are doing great work.
Obviously a low priority bug, but when opening the current directory in neovim using the terminal (e.g., using the command nvim .
), colouring for git-status doesn't appear.
If opening fern after first opening neovim (eg. :Fern .
or :e .
), colouring is present.
The problem can be reproduced on neovim v0.5.0 with the below vimrc.
if exists('+compatible') && &compatible
set nocompatible
endif
" Disable Vim's native pack feature
set packpath=
" Clone https://github.com/lambdalisue/fern.vim in somewhere
" and specify that directory to the below
" set runtimepath^=~/ghq/github.com/lambdalisue/fern.vim
filetype plugin indent on
syntax on
"----------------------------------------------------------------
" Add extra settings here to reproduce the issue...
call plug#begin('~/.vim/plugged')
Plug 'lambdalisue/fern.vim'
Plug 'lambdalisue/fern-hijack.vim'
Plug 'lambdalisue/fern-git-status.vim'
call plug#end()
"----------------------------------------------------------------
echomsg "Custom minimal vimrc has loaded"
Thank you for the plugin!
Hello,
fern-git-status has a performance section in the front page README. That is helpful.
I suggest the following addition which really does help for Linux Kernel sized repositories:
For large repositories it is also recommended to enable the Git (2.24+)
manyFiles
feature:git config feature.manyFiles true
Git for windows is
>git rev-parse --show-toplevel
C:/home/develop/Cica
but with msys2, it shows
$ git rev-parse --show-toplevel
/home/<username>/develop/Cica
thus the plugin does not work on msys2
echom a:status_map " {'E:\Downloads\testc/1.cxx': '??''}
echom path " /E:/Downloads/testc/1.c
I get the error below when using fern
and fern-git-status.vim
. The error goes away as soon as I no longer load fern-git-status.vim
.
[fern] ERROR: {'throwpoint': '/nix/store/yl9cddnld5gq63vadc9pgb18m3r9mg9z-vimplugin-fern-vim-2021-01-20/share/vim-plugins/fern-vim/autoload/fern/logger.vim, line 82', 'exception': 'Vim(let):E741: Value is locked: g:fern#logger#DEBUG'}
And this is the line it links to
let g:fern#logger#DEBUG = g:fern#DEBUG
Hello @lambdalisue,
The g:fern_git_status_disable_startup
flag is available to disable fern-git-status by default. That is useful, since git status, even with performance optimisation, can still be an expensive task.
I would like to have a mapping to allow the toggling of fern-git-status just as I currently have for toggling marks and hidden files:
nmap <buffer> m <Plug>(fern-action-mark-toggle)j
nmap <buffer> h <Plug>(fern-action-hidden-toggle)
I use these often.
If possible, I would like something similar for fern-git-status:
nmap <buffer> g <Plug>(fern-action-git-status-toggle)
When I hit g
I get git-status details (due to g:fern_git_status_disable_startup
being set to 1), even if this causes pause or slowdown. When I no longer want git-status details, maybe because performance is a little slower, I hit g
again and they disappear as if the fern-git-status
was never loaded to begin with.
If this is too hard, just close this. But if possible, it would be very handy.
Best regards.
I was wondering if it'd be in scope for this plugin to allow hiding gitignored files/directories. Toggle functionality similar to fern-action-hidden:toggle
would be really nice to have. Say fern-git-status-action-ignored:toggle
.
README doesnj't say how to install
I startup vim and neovim with a minimal vimrc, still couldn't show git status. VIMRC is below:
if has('vim_starting')
set nocompatible
endif
set packpath=
set runtimepath+=\~/vimfiles/plugged/fern.vim
set runtimepath+=\~/vimfiles/plugged/fern-plugin-git.vim
filetype plugin indent on
syntax on
nnoremap \<silent> <Leader>e :Fern . -drawer -keep -toggle\<CR>
When the width of fern is small, it hides the status. Would be great if there is option to place it before the file/directory name
Is it possible to change the colors of the notifiers? I noticed my colors aren't exactly right and they are matching the directory colors instead.
Speed of the plugin is very slow. And when it is searching for git changes vim is almost unusable cause it's freezy.
vim 8.2.1110
st-terminal
freeebsd
Exists some way to change the current structure to icons like Powerline?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.