问题描述

在终端中是可以打开nvim的,ONI无法正确找到位置

解决方法

修改配置文件,指定nvim的路径

  1. 终端中输入which nvim定位所在位置,这里返回的结果是/usr/local/bin/nvim
  2. ~/.config/oni/config.js中添加以下内容"debug.neovimPath": "/usr/local/Cellar/neovim/0.3.1/bin/nvim"

    如果没有这个文件,也可复制以下内容保存为文件。
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.activate = function (oni) {
console.log("config activated");
// Input
//
// Add input bindings here:
//
oni.input.bind("<c-enter>", function () { return console.log("Control+Enter was pressed"); });
//
// Or remove the default bindings here by uncommenting the below line:
//
// oni.input.unbind("<c-p>")
};
exports.deactivate = function (oni) {
console.log("config deactivated");
};
exports.configuration = {
//add custom config here, such as
"ui.colorscheme": "nord",
//"oni.useDefaultConfig": true,
//"oni.bookmarks": ["~/Documents"],
//"oni.loadInitVim": false,
//"editor.fontSize": "12px",
//"editor.fontFamily": "Monaco",
// UI customizations
"ui.animations.enabled": true,
"ui.fontSmoothing": "auto",
// https://github.com/onivim/oni/issues/2396#issuecomment-426767185
"debug.neovimPath": "/usr/local/Cellar/neovim/0.3.1/bin/nvim",
};

重启ONI即可

最新文章

  1. 对于挑战书上的很久之前都看不懂的DP看懂的突破
  2. erlang ssl
  3. Java基础-继承 利用接口做参数,写个计算器,能完成+-*/运算
  4. java正则表达式解析短信模板
  5. debian小巧好看的桌面
  6. F - Power Network - poj 1459(简单最大流)
  7. J2EE (十) 简洁的JSTL、EL
  8. Python新手学习基础之初识python——与众不同1
  9. android通过代码判断手机是否root
  10. java中构造方法和this,static关键字
  11. Node Sass could not find a binding for your current environment 解决办法
  12. Nodejs MSSQL详细解读
  13. Codeforces Round#432 简要题解
  14. OpenCV-Python学习01
  15. Django+Vue打造购物网站(五)
  16. mysql字符集问题汇总
  17. Stanford CoreNLP使用需要注意的一点
  18. vim创建程序文件自动添加头部注释/自动文件头注释与模板定义
  19. 【Hbase学习之五】HBase MapReduce
  20. ___security_cookie机制

热门文章

  1. Linux(CentOS7)命令学习摘要
  2. .Net在操作mysql查询的时候出现“: Unknown column &#39;UserName&#39; in &#39;where clause&#39;”错误
  3. python之路--网络通信协议
  4. PHP爬虫框架Snoopy的使用
  5. 如何使用命令从linux服务器下载文件到windows
  6. 使用proxychains 代理终端
  7. eclipse 等号左边代码补全
  8. c提取文件路径、文件名和后缀名
  9. MailUtils类:用于发送激活邮件
  10. micro-fusion &amp; macro-fusion