kdheepak / lazygit.nvim

Plugin for calling lazygit from within neovim.
MIT License
1.47k stars 53 forks source link

Is it duplicate code? #114

Open zcsh0721 opened 8 months ago

zcsh0721 commented 8 months ago

Description

I'm tyro. I'm currently studying this project. I found some duplicate code, I'm not sure if it's correct.

To Reproduce

Here are the steps to reproduce the behavior using MINRC:

Expected behavior

What is expected to happen:

Screenshots

image

Can the paths obtained by vim.loop.cwd() and fn.fnamemodify(fn.resolve(fn.expand('%:p')) be different?

step 3. Is the root parameter redundant? string.format has three parameters and only one '%s'

If it's my lack of ability that bothers you, please forgive me

Desktop (please complete the following information):

main branch