mirror of
https://github.com/Cian-H/my_nvim_config.git
synced 2025-12-23 20:51:56 +00:00
Fix last static analysis warnings
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
1
init.lua
1
init.lua
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user