mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07: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:
parent
70fb40a229
commit
b1ae775de6
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user