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

49 Commits

Author SHA1 Message Date
jdhao
3539207913 use 2 spaces for tabs by default
This removes a lot of code duplication. If we want to use 4 spaces, we
can set it separately in their ftplugin settings.
2022-10-15 11:28:15 +08:00
jdhao
d8b92965e8 change tab size for sql 2022-10-11 00:51:00 +08:00
jdhao
f5097b44b9 change sql comment style 2022-09-25 23:02:16 +08:00
jdhao
b6fa0b7aa5 update delimitMate conf for lua 2022-08-23 13:19:02 +08:00
jdhao
ed5ddf60cc add setup for javascript 2022-08-06 14:20:28 +08:00
jdhao
a9be0d0b20 add mapping to run vim script file 2022-05-09 22:10:35 +08:00
jdhao
dd3e9dd2f4 add map to run lua file 2022-05-03 00:59:32 +08:00
jdhao
9dbeb67de5 [feat] add mapping to add hard linebreak for Markdown 2022-03-27 00:04:39 +08:00
jdhao
4dd1350f25 working config for cmp-omni and vimtex 2022-03-15 20:25:30 +08:00
jdhao
311768ce72 add cmp-omni for working with tex 2022-03-14 00:34:06 +08:00
jdhao
377c54c88c update tex conf 2022-02-28 23:31:01 +08:00
jdhao
5215a601b9 update fold conf for vim script
When setting foldlevel to 0 and load some plugin via InsertEnter event
using packer.nvim, if we press i to go to insert mode, the fold for vim
script file will be automatically closed. It is really annoying.

I have pinpoint the issue to the combination of packer.nvim and setting
foldlevel to 0 in after/ftplugin/vim.vim. What is interesting is that
default value for foldlevel is also 0. However, if we do not set it in
vim.vim, the above issue won't occur, which is strange.
2021-12-14 21:48:58 +08:00
jdhao
50fafcffdb update default value of option 'wrap' 2021-12-04 23:41:56 +08:00
jdhao
f9e9411ee5 update delimitMate setting for Python 2021-09-03 00:10:05 +08:00
jdhao
1ed5220ae9 Do not auto-pair <> for C++ 2021-08-21 01:02:19 +08:00
jdhao
37e9487076 Use delimitMate instead of auto-pairs 2021-08-12 00:51:44 +08:00
jdhao
0aa6117ffc Move ftplugin to after/ftplugin
Make my own settings have the final say on how a filetype should behave,
instead of some 3rd party plugins.
2021-08-09 23:04:27 +08:00
jdhao
55f0e34e3a chore: update docs and code for markdown list function 2021-07-31 21:14:44 +08:00
jdhao
7ace838534 update formatoptions for certain filetypes 2021-06-17 00:21:15 +08:00
jdhao
803b959266 update lua filetype settings 2021-04-13 01:57:37 +08:00
jdhao
9e3a831ec4 update lua filetype settings 2021-04-12 00:31:21 +08:00
jdhao
2636f8575e Add more settings for cpp 2021-03-23 23:15:00 +08:00
jdhao
1e96062c60 Add mappings for Markdown
Use + to turn lines to an unordered list quickly.
2021-02-23 23:33:59 +08:00
jdhao
dd52249a17 Use two spaces per tab for YAML 2021-01-17 23:54:21 +08:00
jdhao
e79f55fd9b update commentstring for cpp 2020-11-27 23:55:18 +08:00
jdhao
42751cb1dd make mapping buffer local 2020-11-26 21:13:07 +08:00
jdhao
283356ee52 Initial support for C++ 2020-11-25 01:07:50 +08:00
jdhao
283d3a8b7b update vim-markdownfootnote settings 2020-11-12 22:40:09 +08:00
jdhao
92bf71ac77 Add text objects for Markdown fenced code blocks. 2020-11-12 21:56:44 +08:00
jdhao
d06770efef add <C-U> in mappings that use command where appropriate 2020-10-19 22:59:27 +08:00
jdhao
e098df1ab7 minor update 2020-10-11 16:30:48 +08:00
jdhao
2d84307695 use match(), replace obscure regex-match notation 2020-09-27 20:57:02 +08:00
jdhao
b65c7c6d70 change vim script style from 4-space indent to 2-space 2020-09-26 09:15:40 +08:00
jdhao
c248ab02d4 turn tab to spaces 2020-09-26 08:48:39 +08:00
jdhao
00cbed4cdc fix style issues as per vint 2020-09-24 23:01:10 +08:00
jdhao
f0abb3481a
use larger length for a line of code 2020-09-17 15:35:18 +08:00
jdhao
63e6a47263
fix markdownfootnote issue
see https://github.com/vim-pandoc/vim-markdownfootnotes/issues/22 for the details
2020-08-11 13:06:58 +08:00
jdhao
4c97952525 update max syntax column for Markdown
This value is set to a large number mainly for long Chinese paragraphs.
Since I do not want to hard-wrap long Chinese paragraphs, some
paragraphs tend to be long in raw bytes.
2020-05-18 00:14:20 +08:00
jdhao
1b97735bf2 chore: remove short url and replace with true url 2020-03-30 23:32:11 +08:00
jdhao
c20f15ad10
Update python settings 2020-01-21 15:39:20 +08:00
jdhao
5c70859a1a
Revert change for Markdown filetype 2020-01-01 18:57:53 +08:00
jdhao
0538162c4d
Update options for Markdown filetype 2020-01-01 17:43:06 +08:00
jdhao
56b28dcfbe Add toml support 2019-12-29 19:40:49 +08:00
jdhao
b39a2d5a8a Change conceal settings for Markdown 2019-12-15 18:43:06 +08:00
jdhao
5771a86c0d
Fix an issue with AsyncRun.vim
Change the output of Python from Buffered to Unbuffered so that we can see the command output
immediately instead of waiting for the command to finish to see the output.
See https://github.com/skywind3000/asyncrun.vim/wiki/FAQ#cant-see-the-realtime-output-when-running-a-python-script
and https://stackoverflow.com/questions/107705/disable-output-buffering.
2019-12-09 16:22:19 +08:00
jdhao
57047f91f9
Add mapping for running Python script asynchronously 2019-12-06 20:29:33 +08:00
jdhao
92cec98f25 Do not use colorcolumn for text filetype 2019-11-30 23:17:03 +08:00
jdhao
f3f073d6ef
Remove mappings for Python filetype.
Use quickrun to execute Python source files.
2019-11-14 15:18:21 +08:00
jdhao
6428422cbd Simplify init.vim and move settings to autoload and after directory 2019-09-12 21:29:00 +08:00