nvim: Switch away from depredcated nvim_exec function

Use nvim_exec2 instead, which is weirdly named.
This commit is contained in:
Marty Oehme 2023-06-15 10:00:20 +02:00
parent 2dbd94dda4
commit e434c191c9
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -2,7 +2,7 @@
-- https://github.com/elianiva/dotfiles/ - with much gratitude -- https://github.com/elianiva/dotfiles/ - with much gratitude
local api = vim.api local api = vim.api
api.nvim_exec('runtime abbrev.vim', false) api.nvim_exec2('runtime abbrev.vim', {})
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then if not vim.loop.fs_stat(lazypath) then