Skip to content

Allow arbitrary spacing inside function calls #69

Closed
@mawkler

Description

@mawkler

Hi! I would like to be able to align the arguments of multiple similar function calls. Here's an example:

map('n',        '<C-j>',   quickfix_step('below'), { buffer = true })
map('n',        '<C-k>',   quickfix_step('above'), { buffer = true })
map('n',        '<Space>', '<CR><C-w>p',           { buffer = true })
map({'n', 'x'}, '<CR>',    '<CR>',                 { buffer = true })

Currently when I run the formatting it is changed to this:

map('n', '<C-j>', quickfix_step('below'), { buffer = true })
map('n', '<C-k>', quickfix_step('above'), { buffer = true })
map('n', '<Space>', '<CR><C-w>p', { buffer = true })
map({'n', 'x'}, '<CR>', '<CR>', { buffer = true })

Is it possible to tell the formatter not to touch the spaces inside function calls?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions