feat(query): indents that reflect the formatter (#6154)

* feat(query): indents that reflect the formatter

Indentation queries that reflect the query formatter. Only applicable if `lispoptions=expr:1`
This commit is contained in:
Riley Bruins 2024-02-21 01:47:09 -08:00 committed by GitHub
parent 01cdcfb216
commit 455f6586ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 83 additions and 5 deletions

View file

@ -83,7 +83,7 @@ local function compare_indent(before, after, xfail)
end
local function set_buf_indent_opts(opts)
local optnames = { "tabstop", "shiftwidth", "softtabstop", "expandtab", "filetype" }
local optnames = { "tabstop", "shiftwidth", "softtabstop", "expandtab", "filetype", "lispoptions" }
for _, opt in ipairs(optnames) do
if opts[opt] ~= nil then
vim.bo[opt] = opts[opt]