nix edit: support kakoune
This commit is contained in:
parent
8434869632
commit
3b776cb0a7
|
@ -204,7 +204,8 @@ Strings editorFor(const Pos & pos)
|
||||||
if (pos.line > 0 && (
|
if (pos.line > 0 && (
|
||||||
editor.find("emacs") != std::string::npos ||
|
editor.find("emacs") != std::string::npos ||
|
||||||
editor.find("nano") != std::string::npos ||
|
editor.find("nano") != std::string::npos ||
|
||||||
editor.find("vim") != std::string::npos))
|
editor.find("vim") != std::string::npos ||
|
||||||
|
editor.find("kak") != std::string::npos))
|
||||||
args.push_back(fmt("+%d", pos.line));
|
args.push_back(fmt("+%d", pos.line));
|
||||||
args.push_back(pos.file);
|
args.push_back(pos.file);
|
||||||
return args;
|
return args;
|
||||||
|
|
|
@ -24,8 +24,8 @@ this attribute to the location of the definition of the
|
||||||
`meta.description`, `version` or `name` derivation attributes.
|
`meta.description`, `version` or `name` derivation attributes.
|
||||||
|
|
||||||
The editor to invoke is specified by the `EDITOR` environment
|
The editor to invoke is specified by the `EDITOR` environment
|
||||||
variable. It defaults to `cat`. If the editor is `emacs`, `nano` or
|
variable. It defaults to `cat`. If the editor is `emacs`, `nano`,
|
||||||
`vim`, it is passed the line number of the derivation using the
|
`vim` or `kak`, it is passed the line number of the derivation using
|
||||||
argument `+<lineno>`.
|
the argument `+<lineno>`.
|
||||||
|
|
||||||
)""
|
)""
|
||||||
|
|
Loading…
Reference in a new issue