jdhao
59525c5577
refactor: theme.vim --> theme.lua
2022-08-26 18:42:30 +08:00
jdhao
b279c0cd95
fix some typos
2022-08-23 21:12:04 +08:00
jdhao
99d5a0343b
update title str format
2022-07-11 23:14:16 +08:00
jdhao
3678da1b3c
update titlestring
2022-07-02 16:47:58 +08:00
jdhao
146ef5d0b8
use lua for may_create_dir
2022-01-13 20:27:48 +08:00
jdhao
6fd7155787
feat: create parent dir of current file if it does not exist
2022-01-13 01:51:19 +08:00
jdhao
1373c418b9
restore reg content after using it
2021-12-30 23:39:42 +08:00
jdhao
e82b450464
split command output to list of string and set the buffer
2021-12-30 23:39:03 +08:00
jdhao
08818dbf01
remove logging
2021-12-30 23:38:49 +08:00
jdhao
0ed8814aef
fix: command output captured by a register not formatted properly
...
Newline is converted to NUL character, which is nasty, see also https://vi.stackexchange.com/q/6697/15292 .
2021-12-30 22:33:39 +08:00
jdhao
a86f1d2f31
refactor: capture command output silently
2021-12-30 22:33:06 +08:00
jdhao
bbd642af1a
renaming variables
2021-12-15 00:21:34 +08:00
jdhao
752dbcbe2d
remove mentioning of vim-airline
2021-12-05 14:33:59 +08:00
jdhao
39e5e1913f
Add command :Datetime to show current time or translate a Unix timestamp
2021-12-02 22:06:40 +08:00
jdhao
19cf6cca3c
refactor theme loading
2021-11-23 22:43:12 +08:00
jdhao
8ebbec29d6
move whitespace utility into separate plugins
2021-11-01 23:38:44 +08:00
jdhao
2d27a699dc
add iso time utils function
2021-11-01 22:39:36 +08:00
jdhao
e8d91b43ce
show redir output in scratch buffer
2021-10-24 17:03:44 +08:00
jdhao
51a004e865
add notification for Redir command
2021-10-23 20:57:00 +08:00
jdhao
6464539399
nvim-notify update
2021-10-18 22:32:38 +08:00
jdhao
421111f474
refactor: load colorschemes randomly
...
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 .
2021-10-15 23:20:35 +08:00
jdhao
42a0663184
Reduce timeout for nvim-notify
2021-08-20 01:12:35 +08:00
jdhao
fa203cf3b8
feat: make :edit command supports file glob patterns
2021-08-13 23:27:17 +08:00
jdhao
6e1ae51474
Fix: remove logging
2021-08-13 01:19:47 +08:00
jdhao
70d7f3aea5
Add Redir command to capture command output easily
2021-08-13 01:17:57 +08:00
jdhao
fe26dfa9c1
Use custom git branch name for vim-airline
...
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.
2021-08-08 22:06:47 +08:00
jdhao
f690cdbf1d
Better way to call lua function inside vim script
2021-08-07 21:48:28 +08:00
jdhao
8dffa8bd23
chore: formatting and fix spell errors
2021-08-07 03:15:22 +08:00
jdhao
d434627738
Fix: the loading condition for fugitive is wrong
...
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
2021-08-07 02:32:12 +08:00
jdhao
c4d050e99d
Use nvim-notify for showing messages
2021-08-05 01:57:35 +08:00
jdhao
f7475f3e4f
Refactor: use a unified log function
2021-07-24 14:53:48 +08:00
jdhao
764bd0c2bb
fix: use normal!
...
Use command normal! to avoid any mapping being accidentally used.
2021-07-13 22:42:40 +08:00
jdhao
e4ef4fa6ea
Fix bug for text object for the entire buffer
2021-01-12 23:01:49 +08:00
jdhao
eb0c63c175
Make a plugin for leaving insert mode
2020-12-16 01:33:03 +08:00
jdhao
9a7ac4c9d1
Using jk to escape insert mode without lagging.
...
See https://jdhao.github.io/2020/11/23/neovim_better_mapping_for_leaving_insert_mode/ .
2020-11-24 22:55:39 +08:00
jdhao
2ad432088f
move function to autoload dir
2020-11-14 14:29:37 +08:00
jdhao
92bf71ac77
Add text objects for Markdown fenced code blocks.
2020-11-12 21:56:44 +08:00
jdhao
f68fa62e86
Move text object to autoload directory
2020-11-12 21:45:55 +08:00
jdhao
ba3254bd65
refactor: move titlestring method to autoload dir
2020-11-08 22:20:40 +08:00
jdhao
bb242b7699
Use lua to generate random int.
2020-10-19 22:37:08 +08:00
jdhao
4537bab436
update fold text style
2020-09-30 19:28:35 +08:00
jdhao
191abbcf88
update foldtext function
2020-09-30 16:23:38 +08:00
jdhao
cb478b5ce1
add ! for custom functions
2020-09-27 21:30:30 +08:00
jdhao
5c4223b27d
add mapping to move single or multiple lines
2020-09-27 21:29:46 +08:00
jdhao
c226973bd5
refactor: simplify if else
2020-09-27 19:20:42 +08:00
jdhao
ab07e4069e
use printf for string concatenation where needed
2020-09-27 18:46:12 +08:00
jdhao
b65c7c6d70
change vim script style from 4-space indent to 2-space
2020-09-26 09:15:40 +08:00
jdhao
00cbed4cdc
fix style issues as per vint
2020-09-24 23:01:10 +08:00
jdhao
e2b32df47f
add abort for functions
2020-09-21 20:18:32 +08:00
jdhao
1a3738ff09
Update utils.vim
2020-05-06 11:55:38 +08:00