mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
Support disable all default mappings
This commit is contained in:
@@ -145,8 +145,12 @@ Formula Expressions :
|
||||
OPTIONS *table-mode-options*
|
||||
|
||||
Overview:
|
||||
|table-mode-loaded| ............. Disable the plugin.
|
||||
|table-mode-loaded| ............. Disable the plugin.
|
||||
|table-mode-verbose| ............ Notify when Enabled/Disabled.
|
||||
|table-mode-disable-mappings| ... Disable default mappings.
|
||||
|table-mode-disable-tableize-mappings|
|
||||
Disable tableize mappings.
|
||||
|table-mode-corner| ............. Set corner character.
|
||||
|table-mode-separator| .......... Set separator character.
|
||||
|table-mode-separator-map| ...... Set separator mapping.
|
||||
@@ -199,6 +203,15 @@ g:table_mode_verbose *table-mode-verbose*
|
||||
Use this option to disable notifications: >
|
||||
let g:table_mode_verbose = 0
|
||||
<
|
||||
g:table_mode_disable_mappings *table-mode-disable-mappings*
|
||||
Use this option to disable default mappings: >
|
||||
let g:table_mode_disable_mappings = 1
|
||||
<
|
||||
*table-mode-disable-tableize-mappings*
|
||||
g:table_mode_disable_tableize_mappings
|
||||
Use this option to disable tableize mappings: >
|
||||
let g:table_mode_disable_tableize_mappings = 1
|
||||
<
|
||||
g:table_mode_corner *table-mode-corner*
|
||||
Use this option to define the table corner character: >
|
||||
let g:table_mode_corner = '+'
|
||||
|
||||
@@ -64,7 +64,9 @@ call s:SetGlobalOptDefault('table_mode_tableize_auto_border', 0)
|
||||
call s:SetGlobalOptDefault('table_mode_ignore_align', 0)
|
||||
|
||||
if !g:table_mode_always_active "{{{2
|
||||
if !g:table_mode_disable_mappings
|
||||
exec "nnoremap <silent>" g:table_mode_map_prefix . g:table_mode_toggle_map ":<C-U>call tablemode#Toggle()<CR>"
|
||||
endif
|
||||
command! -nargs=0 TableModeToggle call tablemode#Toggle()
|
||||
command! -nargs=0 TableModeEnable call tablemode#Enable()
|
||||
command! -nargs=0 TableModeDisable call tablemode#Disable()
|
||||
|
||||
Reference in New Issue
Block a user