Skip to content

Commit

Permalink
feat(react-dev-overlay): Open nvim with line number (#66358)
Browse files Browse the repository at this point in the history
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
  • Loading branch information
notomo and huozhi authored May 30, 2024
1 parent 95d1bb2 commit 278b0ba
Showing 1 changed file with 3 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 @@ -99,6 +100,7 @@ const COMMON_EDITORS_LINUX = {
'rubymine.sh': 'rubymine',
sublime_text: 'sublime_text',
vim: 'vim',
nvim: 'nvim',
'webstorm.sh': 'webstorm',
'goland.sh': 'goland',
'rider.sh': 'rider',
Expand Down Expand Up @@ -160,6 +162,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 278b0ba

Please sign in to comment.