Skip to content

Commit

Permalink
feat(react-dev-overlay): Open nvim with line number
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo committed May 29, 2024
1 parent b4f3283 commit 81ad0e8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function isTerminalEditor(editor: string) {
switch (editor) {
case 'vi':
case 'vim':
case 'nvim':
case 'emacs':
case 'nano': {
return true
Expand Down Expand Up @@ -160,6 +161,7 @@ function getArgumentsForLineNumber(
return ['-n' + lineNumber, '-c' + colNumber, fileName]
}
case 'vim':
case 'nvim':
case 'mvim':
case 'joe':
case 'gvim': {
Expand Down

0 comments on commit 81ad0e8

Please sign in to comment.