1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

29 Commits

Author SHA1 Message Date
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
jdhao
cfaf341754
update: add function to toggle cursorcolumn 2020-04-29 20:54:52 +08:00
jdhao
1b97735bf2 chore: remove short url and replace with true url 2020-03-30 23:32:11 +08:00
jdhao
a28c908c66 Various small update 2019-09-16 23:59:09 +08:00
jdhao
3384d52ef1 Add vim-plug 2019-09-12 21:31:51 +08:00
jdhao
6428422cbd Simplify init.vim and move settings to autoload and after directory 2019-09-12 21:29:00 +08:00