fix: replace deprecated vim.loop and vim.highlight
This commit is contained in:
@@ -66,7 +66,7 @@ vim.o.completeopt = "menuone,noselect,fuzzy,nosort"
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
desc = "highlight when yanking text",
|
||||
group = vim.api.nvim_create_augroup("CustomHighlightYank", { clear = true }),
|
||||
callback = function() vim.highlight.on_yank() end,
|
||||
callback = function() vim.hl.on_yank() end,
|
||||
})
|
||||
|
||||
-- filetype overrides
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-- bootstrap 'mini.nvim' manually in a way that it gets managed by 'mini.deps'
|
||||
local mini_path = vim.fn.stdpath("data") .. "/site/pack/deps/start/mini.nvim"
|
||||
if not vim.loop.fs_stat(mini_path) then
|
||||
if not vim.uv.fs_stat(mini_path) then
|
||||
vim.cmd('echo "Installing `mini.nvim`" | redraw')
|
||||
local clone_cmd = {
|
||||
"git",
|
||||
|
||||
@@ -2,7 +2,7 @@ local function default_header()
|
||||
local hour = tonumber(vim.fn.strftime("%H"))
|
||||
local part_id = math.floor((hour + 4) / 8) + 1
|
||||
local day_part = ({ "evening", "morning", "afternoon", "evening" })[part_id]
|
||||
local username = vim.loop.os_get_passwd()["username"] or "USERNAME"
|
||||
local username = vim.uv.os_get_passwd()["username"] or "USERNAME"
|
||||
|
||||
return ("good %s, %s"):format(day_part, username)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user