Improve handling of g:table_mode_ignore_align

This commit is contained in:
Dhruva Sagar
2022-03-01 13:12:54 +05:30
parent 494d95d2b3
commit 698ff3074c
4 changed files with 7 additions and 3 deletions

View File

@@ -1,5 +1,9 @@
# Change Log # Change Log
## Version 4.7.6.1
* Improved handling of `g:table_mode_ignore_align` configuration, now allows
per buffer overrides
## Version 4.7.6 ## Version 4.7.6
* Add configuration `g:table_mode_ignore_align` * Add configuration `g:table_mode_ignore_align`

View File

@@ -1,4 +1,4 @@
# VIM Table Mode v4.7.6 [![Build Status](https://travis-ci.org/dhruvasagar/vim-table-mode.png?branch=master)](https://travis-ci.org/dhruvasagar/vim-table-mode) # VIM Table Mode v4.7.6.1 [![Build Status](https://travis-ci.org/dhruvasagar/vim-table-mode.png?branch=master)](https://travis-ci.org/dhruvasagar/vim-table-mode)
An awesome automatic table creator & formatter allowing one to create neat An awesome automatic table creator & formatter allowing one to create neat
tables as you type. tables as you type.

View File

@@ -115,7 +115,7 @@ function! tablemode#align#Align(lines) "{{{2
endfor endfor
endfor endfor
if g:table_mode_ignore_align ==# 1 if tablemode#utils#get_buffer_or_global_option('table_mode_ignore_align') ==# 1
let alignments = [] let alignments = []
else else
let alignments = tablemode#align#alignments(lines[0].lnum, len(lines[0].text)) let alignments = tablemode#align#alignments(lines[0].lnum, len(lines[0].text))

View File

@@ -1,7 +1,7 @@
*table-mode.txt* Table Mode for easy table formatting *table-mode.txt* Table Mode for easy table formatting
=============================================================================== ===============================================================================
Table Mode, THE AWESOME AUTOMATIC TABLE CREATOR & FORMATTER Table Mode, THE AWESOME AUTOMATIC TABLE CREATOR & FORMATTER
VERSION 4.7.6 VERSION 4.7.6.1
Author: Dhruva Sagar <http://dhruvasagar.com/> Author: Dhruva Sagar <http://dhruvasagar.com/>
License: MIT <http://opensource.org/licenses/MIT/> License: MIT <http://opensource.org/licenses/MIT/>