autoload/lsp/lspserver.vim | 10 +--------- diff --git a/autoload/lsp/lspserver.vim b/autoload/lsp/lspserver.vim index 86d94fe219e63b3f89abf5d3b555a7cff5c90195..ae7a4707088f9b6d809c9593644f67bd11a6f617 100644 --- a/autoload/lsp/lspserver.vim +++ b/autoload/lsp/lspserver.vim @@ -718,17 +718,9 @@ var req = lspserver.createRequest(cmd) # interface DocumentFormattingParams # interface TextDocumentIdentifier - var tabsz: number - if &sts > 0 - tabsz = &sts - elseif &sts < 0 - tabsz = &shiftwidth - else - tabsz = &tabstop - endif # interface FormattingOptions var fmtopts: dict = { - tabSize: tabsz, + tabSize: shiftwidth(), insertSpaces: &expandtab ? true : false, } #req.params->extend({textDocument: {uri: util.LspFileToUri(fname)},