Closed nyngwang closed 2 years ago
I ran :pwd in a buffer and got ~/.config, while when I execute :lua require("FTerm").toggle() the path is at ~.
:pwd
~/.config
:lua require("FTerm").toggle()
~
Update: I have tested other folders under ~, this bug only happens on ~/.config.
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.
vim.bo.filetype
vim.opt.filetype
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
.