Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

very cool work! #18

Open
sozoalvin opened this issue Sep 5, 2021 · 3 comments
Open

very cool work! #18

sozoalvin opened this issue Sep 5, 2021 · 3 comments

Comments

@sozoalvin
Copy link

Dear yuki, just tried out your work today and i think it's fantastic!

just thought ill mention that the offsets might be off or something, or my settings aren't right.

You can view a screenshot here:

https://ibb.co/r4wNV79

As you can see, the preview window eats up the actual menu itself on the left.

Do you think theres's setting somewhere that i could use to fix this?

Apart from having

Plug 'yuki-yano/fern-preview.vim

in my .vimrc file, i have nothing in it. Perhaps you can advise? Thank you :)

@sozoalvin
Copy link
Author

sorry , i need to add that i have this in .vimrc file as well:

augroup fern-settings
function! s:fern_settings() abort
nmap <silent> <buffer> p     <Plug>(fern-action-preview:toggle)
nmap <silent> <buffer> <C-p> <Plug>(fern-action-preview:auto:toggle)
nmap <silent> <buffer> <C-d> <Plug>(fern-action-preview:scroll:down:half)
nmap <silent> <buffer> <C-u> <Plug>(fern-action-preview:scroll:up:half)
endfunction

@yuki-yano
Copy link
Owner

Is the function running when you invoke fern?
The following settings are required.

autocmd FileType fern call s:fern_settings()

@sozoalvin
Copy link
Author

yep now i have these codes thanks to you all in my .vimrc file

After i open a folder using nvim . , i can use crt+P and move up and down files. No previews are shown for folders but the files, same problem as posted earlier on. It still cuts off the file names!

autocmd FileType fern call s:fern_settings()
augroup fern-settings
function! s:fern_settings() abort
nmap <silent> <buffer> p     <Plug>(fern-action-preview:toggle)
nmap <silent> <buffer> <C-p> <Plug>(fern-action-preview:auto:toggle)
nmap <silent> <buffer> <C-d> <Plug>(fern-action-preview:scroll:down:half)
nmap <silent> <buffer> <C-u> <Plug>(fern-action-preview:scroll:up:half)
endfunction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants