mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
Automatically setup table options
Readme mentions settings for Markdown and ReST, but we can apply them automatically for the current filetype. If a user is editing a no filetype scratch buffer, they'll still need to configure these options themselves. But this provides better defaults when editing a buffer of these filetypes. Adds get_buffer_or_global_option that could be used for any other buffer-local (filetype-specific) options.
This commit is contained in:
@@ -184,6 +184,9 @@ g:table_mode_verbose *table-mode-verbose*
|
||||
g:table_mode_corner *table-mode-corner*
|
||||
Use this option to define the table corner character: >
|
||||
let g:table_mode_corner = '+'
|
||||
<
|
||||
Or only in the current buffer: >
|
||||
let b:table_mode_corner = '+'
|
||||
<
|
||||
g:table_mode_separator *table-mode-separator*
|
||||
Use this option to define the table column separator character: >
|
||||
@@ -232,6 +235,9 @@ g:table_mode_corner_corner *table-mode-corner-corner*
|
||||
Use this option to define the character to be used for the extreme
|
||||
corners of the table border. >
|
||||
let g:table_mode_corner_corner = '|'
|
||||
<
|
||||
Or only in the current buffer: >
|
||||
let b:table_mode_corner_corner = '|'
|
||||
<
|
||||
g:table_mode_align_char *table-mode-align-char*
|
||||
Use this option to define the character to be used for defining
|
||||
|
||||
Reference in New Issue
Block a user