fix(treesitter): really backup spelloptions (#22145)

see 0887ad1cbb for the original commit on
master, and 80bbba94d6 for the backport on
the branch, which forgot to backup the original setting value.
This commit is contained in:
emmanueltouzery 2023-02-07 09:37:14 +01:00 committed by GitHub
parent 70fb40a229
commit b1ae775de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@ function TSHighlighter.new(tree, opts)
end
end
self.orig_spelloptions = vim.bo[self.bufnr].spelloptions
vim.bo[self.bufnr].syntax = ''
vim.b[self.bufnr].ts_highlight = true