mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(treesitter): really backup spelloptions (#22145)
see0887ad1cbb
for the original commit on master, and80bbba94d6
for the backport on the branch, which forgot to backup the original setting value.
This commit is contained in:
@ -88,6 +88,8 @@ function TSHighlighter.new(tree, opts)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.orig_spelloptions = vim.bo[self.bufnr].spelloptions
|
||||||
|
|
||||||
vim.bo[self.bufnr].syntax = ''
|
vim.bo[self.bufnr].syntax = ''
|
||||||
vim.b[self.bufnr].ts_highlight = true
|
vim.b[self.bufnr].ts_highlight = true
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user