numToStr / FTerm.nvim

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

It didn't start from `pwd`? #51

Closed nyngwang closed 2 years ago

nyngwang commented 2 years ago

I ran :pwd in a buffer and got ~/.config, while when I execute :lua require("FTerm").toggle() the path is at ~.

Update: I have tested other folders under ~, this bug only happens on ~/.config.

nyngwang commented 2 years ago

Never mind, it's my fault. I just realized that it's a bug from my plugin. I should detect the filetype with vim.bo.filetype, not vim.opt.filetype.