mirror of https://github.com/onivim/oni.git
Fix lint issues
This commit is contained in:
parent
7c1083f830
commit
495608ea4c
|
@ -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)) {
|
||||
|
|
|
@ -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"),
|
||||
|
|
|
@ -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: " +
|
||||
|
|
|
@ -53,5 +53,5 @@ export const startEditors = async (
|
|||
)
|
||||
windowManager.createSplit("horizontal", editor)
|
||||
|
||||
await editor.init(filesToOpen, additionalArgs);
|
||||
await editor.init(filesToOpen, additionalArgs)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue