0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Hyperを開いたら自動でNeovimを開くようにした

Posted at

シェルの操作は全部Neovim内のターミナルで行なっているので、ターミナルエミュレータはNeovimの起動(とキーショートカットを使った入力切り替え)ができればいい、ということでHyperの設定をいじりました。

これはその備忘録です。

変更内容

~/.hyper.js
"use strict";
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
    config: {
        (...中略...)
-       shell: '',
-       shellArgs: ['--login'],
+       shell: '/opt/homebrew/bin/nvim',
+       shellArgs: [],
        (...中略...)
    },
};

単純に起動時のシェルにNeovimを指定しているだけです。
注意点として、shellArgs: [''],とすると空文字のファイルが指定された、と解釈されてしまうのでshellArgs: [],とする必要があります。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?