Skip to content

lsp-mode interferes with buffer indent set-up even when lsp-enable-indentation is nil #2408

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

Closed
gdanov opened this issue Dec 14, 2020 · 1 comment
Labels

Comments

@gdanov
Copy link

gdanov commented Dec 14, 2020

Describe the bug
I'm trying to use lsp-mode alongside Cider (for clojure development). I want to use cider's buffer formatting. (setq lsp-enable-indentation nil) does not help. The result is that some vars set-up by cider are set to nil (example: indent-region-function).

To Reproduce
add lsp-mode and lsp-clojure to vanilla prelude emacs, open clojure buffer and try to use cider's formatting...

Expected behavior
I'd expect that lsp-mode does not touch anything formatting related when indent-region-function is nil

Which Language Server did you use
lsp-clojure

OS
os x

Error callstack
nothing useful in any of the log bufers

@yyoncho
Copy link
Member

yyoncho commented Dec 14, 2020

We should unset indent-region-function only if it is set to lsp-mode's formatting function.

@yyoncho yyoncho added the bug label Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants