为ToggleLineNumberAndNerdTree添加try-catch块