Skip to content

fix: auto apply formatter args set in user/configs/formatters.#1051

Merged
Jint-lzxy merged 2 commits intomainfrom
fix/formatters-args
Nov 1, 2023
Merged

fix: auto apply formatter args set in user/configs/formatters.#1051
Jint-lzxy merged 2 commits intomainfrom
fix/formatters-args

Conversation

@ayamir
Copy link
Owner

@ayamir ayamir commented Nov 1, 2023

This PR supports applying formatter args set in user/configs/formatters. The related wiki will be updated after merging.

Signed-off-by: ayamir <lgt986452565@gmail.com>
@ayamir ayamir linked an issue Nov 1, 2023 that may be closed by this pull request
2 tasks
@ayamir
Copy link
Owner Author

ayamir commented Nov 1, 2023

Checkout to this PR and create a directory called formatters under lua/user/configs/.
Move your clang_format.lua to lua/user/configs/formatters/.
@Penguin-SAMA

@ayamir
Copy link
Owner Author

ayamir commented Nov 1, 2023

2023-11-01-19-08-52.mp4

Copy link
Collaborator

@charliie-dev charliie-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't use clang-format, so i can't test it; however, the lua part make sense to me.

Copy link
Collaborator

@Jint-lzxy Jint-lzxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Jint-lzxy Jint-lzxy merged commit ebc1bef into main Nov 1, 2023
@Jint-lzxy Jint-lzxy deleted the fix/formatters-args branch November 1, 2023 13:21
singlemancombat pushed a commit to singlemancombat/nvim-config that referenced this pull request Nov 3, 2023
…ir#1051)

* fix: auto apply formatter args set in `user/configs/formatters`.

Signed-off-by: ayamir <lgt986452565@gmail.com>

* fixup:! remove redundant `pcall`.

---------

Signed-off-by: ayamir <lgt986452565@gmail.com>
ttbug pushed a commit to ttbug/nvimconf that referenced this pull request Nov 9, 2023
…ir#1051)

* fix: auto apply formatter args set in `user/configs/formatters`.

Signed-off-by: ayamir <lgt986452565@gmail.com>

* fixup:! remove redundant `pcall`.

---------

Signed-off-by: ayamir <lgt986452565@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The custom .clang-format file is not working

3 participants