mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
startup: respect earlier :filetype and :syntax.
If user invokes :filetype or :syntax before startup defaults are applied, don't clobber their choices.
This commit is contained in:

committed by
Justin M. Keyes

parent
da6299445a
commit
6c9c08c370
@@ -337,7 +337,8 @@ int main(int argc, char **argv)
|
||||
// Do ":filetype plugin indent on".
|
||||
maybe_enable_filetype();
|
||||
// Enable syntax (sources syntax/syntax.vim, which calls `:filetype on`).
|
||||
syn_cmd("syntax");
|
||||
do_cmdline_cmd("if !exists('syntax_off') | syntax on |"
|
||||
"else | unlet syntax_off | endif");
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user