Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-11-18 | fix: range format method for async formatters and injected | Steven Arcangeli | |
2023-11-06 | fix: catch jobstart errors (#183) | Steven Arcangeli | |
2023-10-08 | fix: handle one failure mode with range formatting (#123) | Steven Arcangeli | |
2023-10-08 | feat: errors do not stop formatting early | Steven Arcangeli | |
2023-10-05 | feat: expose configuration options for injected formatter (#118) | Steven Arcangeli | |
2023-10-05 | doc: typo in runner.lua (#112) | Ikko Eltociear Ashimine | |
ocurred -> occurred | |||
2023-10-02 | fix: injected formatter doesn't have interruption errors | Steven Arcangeli | |
2023-09-29 | fix: injected formatter hangs on empty file | Steven Arcangeli | |
2023-09-29 | fix: format_after_save blocks on exit for lsp formatting | Steven Arcangeli | |
2023-09-29 | feat: format injected languages (#83) | Steven Arcangeli | |
2023-09-29 | fix: format_after_save autocmd blocks nvim exit until complete | Steven Arcangeli | |
This fixes one the main issue with a BufWritePost format autocmd: that if the user does `:wq` vim will exit before the formatting changes are applied. Now we will block in VimLeavePre until the formatter completes (or a timeout is reached). | |||
2023-09-16 | fix: unify timeout error message format with LSP | Steven Arcangeli | |
2023-09-15 | feat: allow running commands in a shell (#49) | Steven Arcangeli | |
2023-09-12 | fix: modify diff calculation to handle end-of-file newlines better (#35) | Steven Arcangeli | |
2023-08-31 | feat: format() takes an optional callback (#21) | Steven Arcangeli | |
* refactor: replicate lsp.buf.format call * feat: format() takes an optional callback * fix: improper logging * fix: callback returns error if buffer is no longer valid * fix: provide more detailed error message to callback * fix: properly detect task interruption * cleanup: remove unnecessary error code translation * fix: lsp formatting for Neovim 0.9 * doc: add example of async formatting on save * fix: async LSP formatter discards changes if buffer was modified * fix: error code comparison * fix: use the same LSP client filtering logic everywhere * fix: add buffer validity guard checks * fix: add buffer validity guard to LSP formatter * refactor: change the default log level to WARN | |||
2023-08-30 | feat: apply changes as text edits using LSP utils (#18) | Steven Arcangeli | |
* feat: apply changes as text edits using LSP utils This means we can leverage all of the work that was done in the LSP client to preserve marks, cursor position, etc * log: add trace logging to debug performance * feat: use the same diff -> TextEdit technique for bad LSP servers Some LSP servers simply return a single TextEdit that replaces the whole buffer. This is bad for extmarks, cursor, and if the buffer is open in multiple windows the non-active window will jump to the top. We can detect that situation and apply the same vim.diff logic to convert it into more granular TextEdits. | |||
2023-08-29 | feat: notify when formatter errors, and add notify_on_error config option (#16) | Steven Arcangeli | |
2023-08-29 | feat: display last few lines of the log file in :ConformInfo | Steven Arcangeli | |
2023-08-29 | feat: formatter config function is passed the buffer number (#9) | Steven Arcangeli | |
2023-08-29 | feat: add support for environment variables (#8) | Steven Arcangeli | |
2023-08-28 | feat: range formatting | Steven Arcangeli | |
Should work the same as vim.lsp.buf.format(). Additionally, range formatting is supported for *any* formatter. If the formatter doesn't have native support for ranges, conform will do its best to only apply the diffs that affect that range. | |||
2023-08-28 | feat: can silence notification when running formatters (#7) | Steven Arcangeli | |
2023-08-27 | lint: fix type annotations | Steven Arcangeli | |
2023-08-27 | fix: no need to save/restore window view | Steven Arcangeli | |
Since we're applying diffs instead of replacing the entire buffer, the cursor actually stays in a more predictable location if we _don't_ try to save & restore the window views. | |||
2023-08-27 | test: add a test suite | Steven Arcangeli | |
2023-08-26 | fix: gracefully handle another timeout case | Steven Arcangeli | |
2023-08-25 | fix: ensure real buffer numbers get logged | Steven Arcangeli | |
2023-08-25 | fix: don't modify files when no styling changes | Steven Arcangeli | |
2023-08-25 | feat: first working version | Steven Arcangeli | |