Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply user defined config #12

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

mason-731
Copy link

現象

  • setup時に複数行のトリムを除外するよう定義したが、除外されない。
    require("trim").setup({
      patterns = {
        [[%s/\s\+$//e]],           -- remove unwanted spaces
        [[%s/\($\n\s*\)\+\%$//]],  -- trim last line
        [[%s/\%^\n\+//]],          -- trim first line
      },
    })

原因

  • 必ずデフォルトのconfigが適用されているため。

対応

  • ユーザが定義したコンフィグを適用するよう修正。

- ユーザが定義したコンフィグを適用するよう修正
@cappyzawa
Copy link
Owner

PR ありがとうございます!!

@cappyzawa cappyzawa merged commit 1a8e4e5 into cappyzawa:master Jun 16, 2022
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.

2 participants