rogual / neovim-dot-app

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

setlocal wrap command not taking effect on load #187

Open sts10 opened 8 years ago

sts10 commented 8 years ago

In my nvim config file I have

set nowrap 
autocmd FileType html setlocal wrap
set linebreak

so that only HTML files have (soft) line wrapping. This works just fine in Neovim, but in Neovim dot app, the lines are not wrapped when I open an existing HTML file.

If I run :e. in the HTML file, the lines wrap. Also if I run :set ft=html or :setlocal ft=html the lines then wrap. But I'd obviously like them to be wrapped right when I open the file.

ahmadsalim commented 8 years ago

It seems that I am having the same issue with a setlocal command in a vimscript not working correctly. In particular vimtex overrides omnifunc using setlocal, which seems to work with command-line nvim but not with NeoVim.app.

ahmadsalim commented 8 years ago

Or rather, it does work but not when I had an ordinaryset command in my init.vim file, where in that case the non-local set would take precedence.