Nvim: add type annotations to plugin opts

This commit is contained in:
Marko Korhonen 2023-11-21 22:28:54 +02:00
parent 26d0dae2fc
commit b5498c671d
9 changed files with 50 additions and 58 deletions

View file

@ -4,6 +4,7 @@ return {
"folke/noice.nvim",
event = "VeryLazy",
dependencies = { "MunifTanjim/nui.nvim", "rcarriga/nvim-notify" },
---@type NoiceConfig
opts = {
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
@ -19,8 +20,7 @@ return {
},
},
config = function(_, opts)
local noice = require("noice")
noice.setup(opts)
require("noice").setup(opts)
require("which-key").register({
d = {