Updated types

This commit is contained in:
2024-10-15 20:46:02 +02:00
parent 149433b29f
commit fe1c319ffc
3 changed files with 16 additions and 13 deletions

View File

@@ -1,17 +1,6 @@
local M = {}
local set = vim.keymap.set
--- @class MappingOpts
--- @field [1] string
--- @field desc string
--- @alias Mapping table<string, MappingOpts>
--- @class Maps
--- @field v Mapping
--- @field n Mapping
--- @field vn Mapping
--- @param maps Maps
function M.setmap(maps)
local v = maps.v or {}

View File

@@ -2,8 +2,7 @@ local oldstring = 'M.colorscheme = .*"'
local configDir = vim.fn.stdpath("config")
local prefsFile = configDir .. "/lua/taken/prefs.lua"
--- themes
--- @return table
--- @return Themes
local getAllThemes = function()
vim.api.nvim_exec_autocmds("User", { pattern = "ThemeSwitcher", modeline = false })