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

fix: replace get_filetype with vim.filetype.match #982

Merged
merged 2 commits into from
Jul 7, 2023

Commits on Jul 7, 2023

  1. fix: Replace get_filetype with vim.filetype.match

    `utils.get_filetype` doesn't seem to work in autocmd like `BufWritePre` and
    `BufWritePost`, which is a real problem if you like to set up
    auto-tangle.
    
    Fortunatly, neovim 0.8 introduce `vim.filetype.match` that does the same
    natively without issues.
    
    Since the complexity of `get_filetype` has become trivial, I've deprecated
    the function.
    jonathf committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    8f12360 View commit details
    Browse the repository at this point in the history
  2. applying luastyle

    jonathf committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    a1b9e8a View commit details
    Browse the repository at this point in the history