Fix last static analysis warnings

This commit is contained in:
2025-12-22 15:19:56 +00:00
parent 9296eb6b20
commit a4878601cf
4 changed files with 9 additions and 4 deletions

View File

@@ -7,7 +7,8 @@
"workspace.library": [
"$VIMRUNTIME/lua",
"$VIMRUNTIME/lua/vim/lsp",
"~/.local/share/nvim/lazy"
"~/.local/share/nvim/lazy",
"${3rd}/luassert/library"
],
"workspace.checkThirdParty": "Apply"
}

View File

@@ -17,6 +17,7 @@ if not vim.loop.fs_stat(lazypath) then
})
end
---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)
require("lazy").setup("plugins")

View File

@@ -66,6 +66,7 @@ return {
if vim.wo.diff then
vim.cmd.normal({ "]c", bang = true })
else
---@diagnostic disable-next-line: param-type-mismatch
require("gitsigns").nav_hunk("next")
end
end,
@@ -79,6 +80,7 @@ return {
if vim.wo.diff then
vim.cmd.normal({ "[c", bang = true })
else
---@diagnostic disable-next-line: param-type-mismatch
require("gitsigns").nav_hunk("prev")
end
end,
@@ -509,8 +511,8 @@ return {
"<leader>(",
function()
local rm_module = require("rainbow-delimiters")
rm_module.toggle()
if rm_module.is_enabled() then
rm_module.toggle(0)
if rm_module.is_enabled(0) then
vim.notify("Rainbow Delimiters: ON", vim.log.levels.INFO)
else
vim.notify("Rainbow Delimiters: OFF", vim.log.levels.INFO)

View File

@@ -60,6 +60,7 @@ return { -- UI components and other visual elements are declared here
event = "VeryLazy",
version = "2.*",
config = function()
---@diagnostic disable-next-line: undefined-field
require("window-picker").setup()
end,
},
@@ -131,7 +132,7 @@ return { -- UI components and other visual elements are declared here
lazy = true,
keys = require("config.keys").rainbow_delimiters,
config = function()
require("rainbow-delimiters.setup").setup()
require("rainbow-delimiters.setup").setup({})
end,
},
}