Git Product home page Git Product logo

Comments (9)

RnYi avatar RnYi commented on July 4, 2024 1

@RnYi Please try #12

Solved! Thank you!

from vim-fern-git-status.

lambdalisue avatar lambdalisue commented on July 4, 2024

What is your Vim/Neovim/OS version and how did you try?

from vim-fern-git-status.

RnYi avatar RnYi commented on July 4, 2024

I tried on Vim 8.2, Neovim 0.4.4 and Neovim nightly with a minimal vimrc. Then I entered a directory and modified a file, no signs showed on fern buffer. My OS is Win10 20H2. The minimal vimrc is below:

call plug#begin()
    Plug 'lambdalisue/fern.vim'
    Plug 'lambdalisue/fern-git-status.vim'
call plug#end()

if has('vim_starting')
  set nocompatible
endif
filetype plugin indent on
syntax on
let g:mapleader="\<Space>"

" Fern
function! s:init_fern() abort
    setlocal nonu
    nmap <buffer><expr>
                \ <Plug>(fern-my-open-or-expand-or-collapse)
                \ fern#smart#leaf(
                \   "\<Plug>(fern-action-open)",
                \   "\<Plug>(fern-action-expand:stay)",
                \   "\<Plug>(fern-action-collapse)",
                \ )
    nmap <buffer><silent> e    <Plug>(fern-action-open:tabedit)
    nmap <buffer><silent> o    <Plug>(fern-my-open-or-expand-or-collapse)
    nmap <buffer><silent> go   <Plug>(fern-action-open:edit)<C-w>p
    nmap <buffer><silent> t    <Plug>(fern-action-open:tabedit)
    nmap <buffer><silent> T    <Plug>(fern-action-open:tabedit)gT
    nmap <buffer><silent> ma   <Plug>(fern-action-new-path)
    nmap <buffer><silent> mc   <Plug>(fern-action-copy)
    nmap <buffer><silent> md   <Plug>(fern-action-trash)
    nmap <buffer><silent> mm   <Plug>(fern-action-move)
    nmap <buffer><silent> mr   <Plug>(fern-action-rename)

    nmap <buffer><silent> cc   <Plug>(fern-action-clipboard-copy)
    nmap <buffer><silent> cp   <Plug>(fern-action-clipboard-paste)
    nmap <buffer><silent> cm   <Plug>(fern-action-clipboard-move)
    nmap <buffer><silent> cr   <Plug>(fern-action-clipboard-clear)
    nmap <buffer><silent> l    <Plug>(fern-action-enter)
    nmap <buffer><silent> h    <Plug>(fern-action-leave)
    nmap <buffer><silent> r    <Plug>(fern-action-reload)
    nmap <buffer><silent> x    <Plug>(fern-action-collapse)
    nmap <buffer><silent> R  gg<Plug>(fern-action-reload)<C-o>
    nmap <buffer><silent> cd   <Plug>(fern-action-tcd:cursor)
    nmap <buffer><silent> CD <Cmd>Fern . -drawer -keep<CR>

    nmap <buffer><silent> -    <Plug>(fern-action-mark:toggle)
    nmap <buffer><silent> _    <Plug>(fern-action-mark:clear)
    nmap <buffer><silent> I    <Plug>(fern-action-hidden:toggle)

    nmap <buffer><silent> q <Cmd>quit<CR>
endfunction
augroup fern-custom
    autocmd! *
    autocmd FileType fern call s:init_fern()
augroup END
nnoremap <silent> <Leader>e <Cmd>Fern . -drawer -keep -toggle<CR>

Screenshots:
屏幕截图 2021-01-17 210520
屏幕截图 2021-01-17 210738

I modeified "vimrc", but nothing happended.

from vim-fern-git-status.

lambdalisue avatar lambdalisue commented on July 4, 2024

Is git command accessible from your GVim? Confirm it by

:echo executable('git')

from vim-fern-git-status.

RnYi avatar RnYi commented on July 4, 2024

Is git command accessible from your GVim? Confirm it by

:echo executable('git')

Yes, it prints "1".

from vim-fern-git-status.

lambdalisue avatar lambdalisue commented on July 4, 2024

Do you see anything when you hit :message? I don't have Windows + Git + Fern environment thus it's a bit difficult to debug .

from vim-fern-git-status.

RnYi avatar RnYi commented on July 4, 2024

Do you see anything when you hit :message? I don't have Windows + Git + Fern environment thus it's a bit difficult to debug .

I hit :messages, output is below:
屏幕截图 2021-01-18 131351
Translate it in English:Simplified Chinese message maintainer:Yuheng Xie <[email protected]>. It seems not helpful...

from vim-fern-git-status.

lambdalisue avatar lambdalisue commented on July 4, 2024

I've asked other users who use Windows as well and they don't see the columns as well so it seems there are bug on Windows.

from vim-fern-git-status.

lambdalisue avatar lambdalisue commented on July 4, 2024

@RnYi Please try #12

from vim-fern-git-status.

Related Issues (17)

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.