mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
Merge pull request #14361 from bfredl/synenable
[WIP] startup: do "syntax enable" instead of "syntax on" after init.vim
This commit is contained in:
@@ -375,7 +375,7 @@ int main(int argc, char **argv)
|
||||
// Does ":filetype plugin indent on".
|
||||
filetype_maybe_enable();
|
||||
// Sources syntax/syntax.vim, which calls `:filetype on`.
|
||||
syn_maybe_on();
|
||||
syn_maybe_enable();
|
||||
}
|
||||
|
||||
// Read all the plugin files.
|
||||
|
@@ -3469,13 +3469,13 @@ static void syn_cmd_onoff(exarg_T *eap, char *name)
|
||||
}
|
||||
}
|
||||
|
||||
void syn_maybe_on(void)
|
||||
void syn_maybe_enable(void)
|
||||
{
|
||||
if (!did_syntax_onoff) {
|
||||
exarg_T ea;
|
||||
ea.arg = (char_u *)"";
|
||||
ea.skip = false;
|
||||
syn_cmd_onoff(&ea, "syntax");
|
||||
syn_cmd_enable(&ea, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user