Skip to content

Commit

Permalink
update usage of formatter in container
Browse files Browse the repository at this point in the history
  • Loading branch information
nohzafk committed Jul 30, 2024
1 parent 8c296b6 commit 1bcdde0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ If you use `apheleia` as formatter, `lsp-bridge` now support auto formatting fil
```elsip
(use-package! apheleia
:config
(setq +format-with-lsp nil)
;; which formatter to use
(setf (alist-get 'python-mode apheleia-mode-alist) 'ruff)
(setf (alist-get 'python-ts-mode apheleia-mode-alist) 'ruff)
(setq apheleia-remote-algorithm 'local)
(setq apheleia-post-format-hook #'lsp-bridge-monitor-after-save))
;; don't mess up with lsp-mode
(setq +format-with-lsp nil)
;; run the formatter inside container
(setq apheleia-remote-algorithm 'remote))
```

## Keymap
Expand Down
8 changes: 4 additions & 4 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ lsp-bridge 开箱即用, 安装好语言对应的 [LSP 服务器](https://gith
```elisp
(use-package! apheleia
:config
(setq +format-with-lsp nil)
;; which formatter to use
(setf (alist-get 'python-mode apheleia-mode-alist) 'ruff)
(setf (alist-get 'python-ts-mode apheleia-mode-alist) 'ruff)
(setq apheleia-remote-algorithm 'local)
(setq apheleia-post-format-hook #'lsp-bridge-monitor-after-save))
;; don't mess up with lsp-mode
(setq +format-with-lsp nil)
;; run the formatter inside container
(setq apheleia-remote-algorithm 'remote))
```

## 按键
Expand Down

0 comments on commit 1bcdde0

Please sign in to comment.