[vim]Clang-format style personnalisation

This commit is contained in:
Mathieu Maret 2017-09-08 11:05:50 +02:00
parent 8fbbcb7c10
commit da9b09ed58
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ def main():
lines = ['-lines', '%s:%s' % (vim.current.range.start + 1,
vim.current.range.end + 1)]
if vim.eval('exists("g:clang_style")') == '1':
style = vim.eval('g:clang_style')
# Determine the cursor position.
cursor = int(vim.eval('line2byte(line("."))+col(".")')) - 2
if cursor < 0: