Something went wrong. Try again.
Neovim Plugin Template
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233local cmd = require("cmd")
local M = {}
M.config = {}M.command = "Plugin"
local subcommands = { hello = { impl = function(_, _) vim.notify("hello from plugin.nvim!") end, }, notes = { impl = function(_, _) require("plugin.notes").open() end, }, close = { impl = function(_, _) require("plugin.notes").close() end, },}
---@param opts? table user configurationfunction M.setup(opts) M.config = vim.tbl_deep_extend("force", M.config, opts or {}) cmd.register(M.command, "Plugin commands", subcommands)end
return M