diff --git a/.luarc.json b/.luarc.json index 67dcdf1..2a2cdea 100644 --- a/.luarc.json +++ b/.luarc.json @@ -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" } diff --git a/init.lua b/init.lua index 0e1cf14..c393c17 100644 --- a/init.lua +++ b/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") diff --git a/lua/config/keys.lua b/lua/config/keys.lua index 445f7a0..51f8b1f 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -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 { "(", 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) diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index 2bc8609..443a7c1 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -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, }, }