Modernize deprecated Neovim APIs
vim.loop -> vim.uv and vim.highlight.range -> vim.hl.range. Also drop the completeopt comment referring to nvim-cmp, which blink.cmp replaced. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
if not vim.uv.fs_stat(lazypath) then
|
||||
-- bootstrap lazy.nvim
|
||||
-- stylua: ignore
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||
|
||||
@@ -10,7 +10,6 @@ else
|
||||
vim.opt.guifont = "Berkeley Mono Variable:h13"
|
||||
end
|
||||
|
||||
-- idk if it does anything cause I have to set it in the nvim-cmp settings too
|
||||
vim.opt.completeopt = "menu,menuone,noinsert,noselect"
|
||||
|
||||
-- Window decorations
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ M.simulate_yank_highlight = function()
|
||||
local bounds = M.get_visual_bounds()
|
||||
|
||||
local ns = vim.api.nvim_create_namespace("simulate_yank_highlight")
|
||||
vim.highlight.range(
|
||||
vim.hl.range(
|
||||
0,
|
||||
ns,
|
||||
"IncSearch",
|
||||
|
||||
Reference in New Issue
Block a user