From 5808e289e60d2ab7acbab0fe332cc1ea524e95ee Mon Sep 17 00:00:00 2001 From: Aerex Date: Mon, 28 May 2018 18:30:06 -0500 Subject: [PATCH] feat(hledger-ui): added neovim as a supported editor when neovim is set as EDITOR hleger will jump to the correct line number of the transaction; before hledger will open journal at top of the file --- hledger-ui/Hledger/UI/Editor.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger-ui/Hledger/UI/Editor.hs b/hledger-ui/Hledger/UI/Editor.hs index 79daac3b2..efdce3a0a 100644 --- a/hledger-ui/Hledger/UI/Editor.hs +++ b/hledger-ui/Hledger/UI/Editor.hs @@ -83,7 +83,7 @@ identifyEditor :: String -> EditorType identifyEditor cmd | "emacsclient" `isPrefixOf` exe = EmacsClient | "emacs" `isPrefixOf` exe = Emacs - | exe `elem` ["vi","vim","ex","view","gvim","gview","evim","eview","rvim","rview","rgvim","rgview"] + | exe `elem` ["vi","nvim","vim","ex","view","gvim","gview","evim","eview","rvim","rview","rgvim","rgview"] = Vi | otherwise = Other where