Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitafba773

Browse files
committed
fix(ts): do not clobber spelloptions
1 parent84d1094 commitafba773

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎runtime/lua/vim/treesitter/highlighter.lua‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function TSHighlighter.new(tree, opts)
8686
end
8787
end
8888

89-
a.nvim_buf_set_option(self.bufnr,'syntax','')
89+
vim.bo[self.bufnr].syntax=''
9090

9191
TSHighlighter.active[self.bufnr]=self
9292

@@ -95,9 +95,12 @@ function TSHighlighter.new(tree, opts)
9595
-- syntax FileType autocmds. Later on we should integrate with the
9696
-- `:syntax` and `set syntax=...` machinery properly.
9797
ifvim.g.syntax_on~=1then
98-
vim.api.nvim_command('runtime!syntax/synload.vim')
98+
vim.cmd.runtime({'syntax/synload.vim',bang=true })
9999
end
100-
vim.bo[self.bufnr].spelloptions='noplainbuffer'
100+
101+
a.nvim_buf_call(self.bufnr,function()
102+
vim.opt_local.spelloptions:append('noplainbuffer')
103+
end)
101104

102105
self.tree:parse()
103106

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp