Fix getting value of tabstop and expandtab.
Close
@@ -1167,7 +1167,7 @@ impl ILanguageClient for Arc<Mutex<State>> {
return Ok(Value::Null);
}
- let (tab_size, insert_spaces): (u64, bool) = self.eval(&["tabstop", "expandtab"][..])?;
+ let (tab_size, insert_spaces): (u64, bool) = self.eval(&["&tabstop", "&expandtab"][..])?;
let result = self.call(
Some(&languageId),
REQUEST__Formatting,
@@ -1202,8 +1202,8 @@ impl ILanguageClient for Arc<Mutex<State>> {
let (tab_size, insert_spaces, start_line, end_line, end_character): (u64, bool, u64, u64, u64) = self.eval(
&[
- "tabstop",
- "expandtab",
+ "&tabstop",
+ "&expandtab",
"v:lnum - 1",
"v:lnum - 1 + v:count",
"len(getline(v:lnum + v:count)) - 1",
