Skip to content

Commit 9f3751e

Browse files
author
Raphael
committed
add disable keybings option
1 parent baec428 commit 9f3751e

File tree

6 files changed

+578
-535
lines changed

6 files changed

+578
-535
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ trim_trailing_whitespace = true
1717

1818
[*.vim]
1919
indent_style = space
20-
indent_size = 4
20+
indent_size = 2
2121
insert_final_newline = true
2222
trim_trailing_whitespace = true
2323
max_line_length = 80

core/core.vim

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" version info of thinkvim
22
let g:thinkvim_version = "2.5.1"
33
" disable all keymaps of plugins
4-
let g:thinkvim_disable_default_plugins_map = 0
4+
let g:thinkvim_disable_mappings = 0
55
" disable some plugins keymap
6-
let g:thinkvim_disable_default_plugin_map = []
6+
let g:thinkvim_disable_pmaping = []
77

88
if &compatible
99
" vint: -ProhibitSetNoCompatible
@@ -66,9 +66,7 @@ call utils#source_file($VIM_PATH,'core/filetype.vim')
6666
" Load user init config
6767
call utils#check_source(s:user_init_config)
6868

69-
if !g:thinkvim_disable_default_plugins_map
70-
call utils#source_file($VIM_PATH,'keybinds/leaderkey.vim')
71-
endif
69+
call utils#source_file($VIM_PATH,'keybinds/leaderkey.vim')
7270

7371
call utils#source_file($VIM_PATH,'keybinds/motion.vim')
7472

core/plugins.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@
142142

143143
- repo: liuchengxu/vim-which-key
144144
on_cmd: [ Whichkey, Whichkey! ]
145-
hook_add: source $VIM_PATH/modules/module-whichkey.vim
145+
hook_add: |
146+
let g:which_key_map = { 'name' : 'Leader'}
147+
let g:which_key_localmap = {'name' : 'LocalLeader'}
146148
hook_post_source: |
147149
function! s:register_whichkey()
148150
let s:leader_key=substitute(get(g:,"mapleader","\\"), ' ', '<Space>', '')

0 commit comments

Comments
 (0)