rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

ftplugin loading #283

Open hrouault opened 8 years ago

hrouault commented 8 years ago

I have a ftplugin for emails (~/.vim/ftplugin/mail.vim) that sets the textwidth to 72 columns. When I use nvim in a terminal, the textwidth is correctly set: :set tw after I edit an email file nvim file.eml correctly indicates tw=72. However, when I use gnvim (or open -a Neovim file.eml) it indicates tw=79 which is the general textwidth I set in ~/.vimrc. The lists scriptnames are identical in the two situations, at least the files content are identical. Here is the list:

 48: ~/.vim/after/ftplugin/mail.vim
 49: /usr/local/Cellar/neovim/HEAD/share/nvim/runtime/indent/mail.vim
 50: /usr/local/Cellar/neovim/HEAD/share/nvim/runtime/syntax/mail.vim
 51: ~/.vim/plugged/vim-airline/autoload/airline/extensions.vim
 52: ~/.vim/plugged/vim-airline/autoload/airline/section.vim
 53: ~/.vim/plugged/vim-airline/autoload/airline/highlighter.vim
 54: ~/.vim/plugged/gruvbox/autoload/airline/themes/gruvbox.vim
 55: ~/.vim/plugged/vim-airline/autoload/airline/themes.vim
 56: ~/.vim/plugged/vim-airline/autoload/airline/util.vim
 57: ~/.vim/plugged/vim-airline/autoload/airline/builder.vim
 58: ~/.vim/plugged/vim-airline/autoload/airline/extensions/default.vim
 59: ~/.vim/plugged/YouCompleteMe/autoload/youcompleteme.vim
 60: ~/.vim/plugged/neomake/autoload/neomake.vim
 61: ~/.vim/plugged/neomake/autoload/neomake/signs.vim
 62: /usr/local/Cellar/neovim/HEAD/share/nvim/runtime/ftplugin/vim.vim
 63: /usr/local/Cellar/neovim/HEAD/share/nvim/runtime/indent/vim.vim
 64: /usr/local/Cellar/neovim/HEAD/share/nvim/runtime/syntax/vim.vim
 65: /usr/local/Cellar/neovim/HEAD/share/nvim/runtime/syntax/python.vim
 66: /usr/local/Cellar/neovim/HEAD/share/nvim/runtime/syntax/vim/generated.vim

Another issue I have: After I use gnvim file.eml, the file file.eml is opened twice which is quite annoying.