Fix lint issues

This commit is contained in:
Bryan Phelps 2018-12-18 14:03:14 -08:00
parent 7c1083f830
commit 495608ea4c
4 changed files with 16 additions and 11 deletions

View File

@ -111,7 +111,7 @@ export const start = async (args: string[]): Promise<void> => {
arg => (path.isAbsolute(arg) ? arg : path.join(currentWorkingDirectory, arg)),
)
const additionalArgs = parsedArgs["--"] || [];
const additionalArgs = parsedArgs["--"] || []
const filesToOpen = normalizedFiles.filter(f => {
if (fs.existsSync(f)) {

View File

@ -1001,8 +1001,13 @@ export class NeovimEditor extends Editor implements Oni.Editor {
additionalArgs?: string[],
startOptions?: Partial<INeovimStartOptions>,
): Promise<void> {
Log.info("[NeovimEditor::init] Called with filesToOpen: " + filesToOpen + " and args: " + additionalArgs);
additionalArgs = additionalArgs || [];
Log.info(
"[NeovimEditor::init] Called with filesToOpen: " +
filesToOpen +
" and args: " +
additionalArgs,
)
additionalArgs = additionalArgs || []
const defaultOptions: INeovimStartOptions = {
runtimePaths: this._pluginManager.getAllRuntimePaths(),
transport: this._configuration.getValue("experimental.neovim.transport"),

View File

@ -128,15 +128,15 @@ export const startNeovim = async (
const argsToPass = initVimArg
.concat([
"--cmd",
`let &rtp.=',${joinedRuntimePaths}'`,
"--cmd",
"let g:gui_oni = 1",
"-N",
"--embed",
"--cmd",
`let &rtp.=',${joinedRuntimePaths}'`,
"--cmd",
"let g:gui_oni = 1",
"-N",
"--embed",
])
.concat(options.additionalArgs)
.concat(["--"]);
.concat(["--"])
Log.verbose(
"[NeovimProcessSpawner::startNeovim] Sending these args to Neovim: " +

View File

@ -53,5 +53,5 @@ export const startEditors = async (
)
windowManager.createSplit("horizontal", editor)
await editor.init(filesToOpen, additionalArgs);
await editor.init(filesToOpen, additionalArgs)
}