Skip to content

Indentation (tabs vs. spaces) with lsp-format-buffer and lua-mode #3980

Answered by yyoncho
AndreasMatthias asked this question in Q&A
Discussion options

You must be logged in to vote

We use lua-indent-level to get the tab size. (see https://github.com/yyoncho/lsp-mode/blob/inlay-hints/lsp-mode.el#L5910 )
We use indent-tabs-mode to determine whether to ask the server to indent with tabs or not.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AndreasMatthias
Comment options

Answer selected by AndreasMatthias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3979 on March 01, 2023 19:02.