Reduce use of VimL (#168)

* perf(context): reduce use of `cmd` and `fn`

* perf(float): reduce use of `cmd` and `fn`

* perf(init): reduce use of `cmd` and `fn`

* perf(menu): reduce use of `cmd` and `fn`

* perf(plugin): reduce use of `cmd` and `fn`

* docs(README): reduce use of `cmd` and `fn`
This commit is contained in:
Iron-E
2021-09-08 22:12:22 -04:00
committed by GitHub
parent 29679d493b
commit ae54dcdc49
6 changed files with 22 additions and 20 deletions

View File

@@ -125,7 +125,7 @@ float.scroll = function(self, delta)
vim.defer_fn(function()
vim.api.nvim_buf_call(buf, function()
vim.cmd('normal! ' .. top .. 'zt')
vim.api.nvim_command('normal! ' .. top .. 'zt')
end)
end, 0)
end