mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
refactor: use vim._with where possible
This mostly means replacing `nvim_buf_call` and `nvim_win_call` with `vim._with`.
This commit is contained in:
@@ -143,7 +143,7 @@ function TSHighlighter.new(tree, opts)
|
||||
vim.cmd.runtime({ 'syntax/synload.vim', bang = true })
|
||||
end
|
||||
|
||||
api.nvim_buf_call(self.bufnr, function()
|
||||
vim._with({ buf = self.bufnr }, function()
|
||||
vim.opt_local.spelloptions:append('noplainbuffer')
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user