Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google/vim-codefmt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: jsonnetfmt
Choose a base ref
...
head repository: google/vim-codefmt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 11 commits
  • 14 files changed
  • 4 contributors

Commits on Nov 10, 2023

  1. Add Julia formatter

    This uses https://domluna.github.io/JuliaFormatter.jl/stable/ with a
    format.jl script wrapper to handle line ranges and input from stdin.
    flwyd committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    af18bf5 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2023

  1. julia coding style tweaks

    flwyd committed Nov 11, 2023
    Configuration menu
    Copy the full SHA
    7005937 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. add juliaformatter vroom test

    flwyd committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    89c0dfb View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. update vimdoc

    flwyd committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    dbe3057 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae8bd7a View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2023

  1. Add Julia formatter (#230)

    This formatter uses a script wrapping the [JuliaFormatter.jl library](https://github.com/domluna/JuliaFormatter.jl).  This "formatter script in the plugin" approach hasn't been taken before in `vim-codefmt`, so let me know if you'd prefer a different approach or to reorganize things.  (The JuliaFormatter.jl library ships with an executable script, but it only works on file paths (not stdin) and can't handle line ranges.  I'm also not sure how to get the path of a bin directory in your Julia environment, which doesn't work like executables in a package management system like npm.)
    
    If the user hasn't installed the `JuliaFormatter` package, instructions will point to an `install` script in the same directory as the formatter script.  I've tested the shell version of this script, but don't have a Windows machine to test the `.cmd` version.
    
    The line-range handling is a bit of a hack: the underlying library doesn't expose this functionality, so I used comments to enable/disable the formatter around relevant blocks.  I found some edge case behaviors that I've hopefully documented clearly.
    
    The script will use the same `.JuliaFormatter.toml` files in the parent directory hierarchy of the source file being edited to determine the formatter options like style, indent, and line width.  This is the same behavior that running the executable from JuliaFormatter.
    dbarnett authored Nov 24, 2023
    Configuration menu
    Copy the full SHA
    22e551a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6730fb View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2024

  1. Update README.md with missing languages

    Also sort lists, document which filetypes support Prettier, and match
    the AutoFormatBuffer example to the language list.
    flwyd authored and dbarnett committed Jan 13, 2024
    Configuration menu
    Copy the full SHA
    6fa1616 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2024

  1. Add ruff as formatter for Python

    dbarnett authored and snu5mumr1k committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    123b4de View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. ruff formatter: Fix bug running non-stdin version

    Forgot to pass the "-" placeholder for stdin. Apparently if you pass
    --stdin-filename ruff assumes stdin, but if there's no filename it can
    get confused and format everything in-place instead of formatting the
    editor buffer.
    dbarnett authored and snu5mumr1k committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    805e894 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2024

  1. Fix unclosed parentheses

    navignaw authored and snu5mumr1k committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    ff464a4 View commit details
    Browse the repository at this point in the history
Loading