| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Newline is converted to NUL character, which is nasty, see also https://vi.stackexchange.com/q/6697/15292.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In Emacs, there is `seq-random-elt` which randomly selects an element from
a sequence. We mimic it here in Neovim.
Ref: https://www.gnu.org/software/emacs/manual/html_node/elisp/Sequence-Functions.html.
|
|
|
|
|
|
|
|
Airline relies on fugitive to get the branch name, but fugitive is
conditionally loaded. So the branch name is not shown. We need to
provide our own function to get the branch name.
|
|
|
|
|
|
We should load fugitive in the following two situations:
+ When we open nvim in a Git repository
+ When we are inside nvim and change the working directory to a Git
reposity
|
|
|
|
|
|
Use command normal! to avoid any mapping being accidentally used.
|
|
|
|
See https://jdhao.github.io/2020/11/23/neovim_better_mapping_for_leaving_insert_mode/.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|