Skip to content

Commit

Permalink
Update plugins/lsp/conform.nix
Browse files Browse the repository at this point in the history
Co-authored-by: Gaétan Lepage <[email protected]>
  • Loading branch information
Yash Shinde and GaetanLepage committed Oct 26, 2023
1 parent 0d355c1 commit b5aa3be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/lsp/conform.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ in {
have other formatters configured.
["_"] = { "trim_whitespace" },
'';

# If this is set, Conform will run the formatter on save.
# It will pass the table to conform.format().
# This can also be a function that returns the table.
Expand All @@ -56,10 +57,8 @@ in {

# Set the log level. Use `:ConformInfo` to see the location of the log file.
logLevel =
helpers.defaultNullOpts.mkNullable
types.str
"vim.log.levels.ERROR"
" See :h log_levels ";
helpers.ifNonNull' level
(helpers.mkRaw "vim.log.levels.${strings.toUpper level}");

# Conform will notify you when a formatter errors
notifyOnError =
Expand Down

0 comments on commit b5aa3be

Please sign in to comment.