[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Looking For Any Emacs Config Examples That Has LSP Mode With 'aggres
From: |
Óscar Fuentes |
Subject: |
Re: Looking For Any Emacs Config Examples That Has LSP Mode With 'aggressive-indent' Mode |
Date: |
Fri, 29 Apr 2022 01:44:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
"Samuel Banya" <sbanya@fastmail.com> writes:
> Hello Oscar,
>
> Yeah, LSP on its own doesn't do enough indentation.
>
> Aggressive indent is awesome because it does a ton more work for you.
>
> LSP always really only reacts when you hit the Enter key in some cases, hard
> to describe.
>
> Its just not on point in comparison.
>
> Does anyone have any configs that combine the two or at least gets a
> more aggressive LSP mode present?
If you are happy with aggressive-indent, you can disable lsp-mode
indentation system altogether. See lsp-enable-indent (and probably
lsp-enable-on-type-formatting too).
IIRC lsp-mode has settings for choosing when to trigger the
auto-formatting, but can't remember them right now. You can try a
brute-force solution consisting on invoking lsp-format-buffer from a
function on self-insert-hook.