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:
1
ftplugin/markdown.vim
Normal file
1
ftplugin/markdown.vim
Normal file
@@ -0,0 +1 @@
|
||||
let g:table_mode_corner = '|'
|
||||
2
ftplugin/rst.vim
Normal file
2
ftplugin/rst.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
let b:table_mode_corner_corner = '+'
|
||||
let b:table_mode_header_fillchar = '='
|
||||
Reference in New Issue
Block a user