jdhao
590bd6c7e6
use stylua to format lua files
2024-11-05 21:56:18 +01:00
jdhao
95d3b2f2d8
remove setting for JSON file
2024-08-19 22:36:58 +02:00
jdhao
5502d29f40
update config related to folding
...
1. For python and lua, rely on LSP for folding
2. show fold signs on the right of the number column
2024-08-06 05:17:51 +08:00
jdhao
ce1e13e2c9
use plugin nvim-autopairs for autopair
...
delimitMate is not updated for a long time.
2024-07-14 05:17:49 +08:00
jdhao
e462ebcbcc
Enable treesitter folding for Python and Lua
2024-05-08 03:46:45 +08:00
jdhao
ee38046ebc
Add folding support for JSON files
2023-06-13 22:25:25 +02:00
jdhao
074d2bbdfd
make filetype mapping local
...
Otherwise, the mapping will be global and leak to unrelated to files.
2022-11-15 01:10:26 +08:00
jdhao
b893bdc099
fix incorrect comment string for gitconf
2022-10-27 21:59:05 +08:00
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