numToStr / FTerm.nvim

:fire: No-nonsense floating terminal plugin for neovim :fire:
MIT License
721 stars 24 forks source link

How can I make the terminal automatically place itself in the directory of the file I am working on? #72

Closed ghost closed 1 year ago

ghost commented 1 year ago

2022-10-20_01:53:31

I really like this plugin, but I would like to be able to make the terminal open in the directory I am working in and not in the $HOME path.

numToStr commented 1 year ago

FTerm should open terminal relative to :h :pwd. Please check what's your :pwd when you are working on a project?

aidanlw505 commented 1 year ago

Putting vim.opt.autochdir = true or set autochdir in your config should work.

ghost commented 1 year ago

Putting vim.opt.autochdir = true or set autochdir in your config should work.

Thanks a lot, it works!!

numToStr commented 1 year ago

Feel free to close this if your issue is resolved.